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
JP6988965B2 - Drug recognition device - Google Patents
[go: Go Back, main page]

JP6988965B2 - Drug recognition device - Google Patents

Drug recognition device Download PDF

Info

Publication number
JP6988965B2
JP6988965B2 JP2020134719A JP2020134719A JP6988965B2 JP 6988965 B2 JP6988965 B2 JP 6988965B2 JP 2020134719 A JP2020134719 A JP 2020134719A JP 2020134719 A JP2020134719 A JP 2020134719A JP 6988965 B2 JP6988965 B2 JP 6988965B2
Authority
JP
Japan
Prior art keywords
drug
unit
returned
image
returned drug
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
JP2020134719A
Other languages
Japanese (ja)
Other versions
JP2020185446A (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
Priority claimed from JP2016045037A external-priority patent/JP6750257B2/en
Application filed by Yuyama Manufacturing Co Ltd filed Critical Yuyama Manufacturing Co Ltd
Priority to JP2020134719A priority Critical patent/JP6988965B2/en
Publication of JP2020185446A publication Critical patent/JP2020185446A/en
Application granted granted Critical
Publication of JP6988965B2 publication Critical patent/JP6988965B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、薬剤認識装置に関する。 The present invention relates to a drug recognition device.

患者に処方された薬剤が、処方変更等の理由により医療機関内の薬剤処方を管理する部署に返却される場合がある(返品薬剤)。特許文献1には、返品薬剤の処理作業の効率化と、この作業におけるヒューマンエラー防止のための、返品薬剤を自動的に認識して格納する返品薬剤仕分装置を開示している。 Drugs prescribed to patients may be returned to the department that manages drug prescriptions in medical institutions due to reasons such as prescription changes (returned drugs). Patent Document 1 discloses a returned drug sorting device that automatically recognizes and stores a returned drug in order to improve the efficiency of the return drug processing work and prevent human error in this work.

一般に、返品薬剤は、種類、形状、大きさ、使用期限等の性状が種々異なる。しかし、特許文献1に開示された返品薬剤仕分装置では、性状が種々異なる返品薬剤をその後の払出作業の効率等の要因を考慮した高い自由度を確保して格納することについて、特段の考慮が払われていない。より具体的には、性状が種々異なる返品薬剤を、例えば処方情報に応じた自由な払い出しが可能となるように、高い自由度を確保して格納することについて、特段の考慮が払われていない。 In general, returned drugs have various properties such as type, shape, size, and expiration date. However, in the returned drug sorting device disclosed in Patent Document 1, special consideration is given to storing returned drugs having various properties with a high degree of freedom in consideration of factors such as the efficiency of the subsequent payout work. Not paid. More specifically, no special consideration has been given to storing returned drugs with various properties with a high degree of freedom so that they can be freely dispensed according to prescription information, for example. ..

また、特許文献1の返品薬剤仕分装置は、返品薬剤の画像を撮影し、その輪郭を解析することにより返品薬剤の位置を検出する。そして、検出した位置に基づいて返品薬剤を吸着して移送し、格納場所に自動的に返却する。しかし、移送すべき返品薬剤の位置等を認識する際、返品薬剤同士が接触している場合や部分的に重なり合っている場合、その輪郭が不明瞭となり、1つの薬剤の位置を正確に検出できない場合がある。 Further, the returned drug sorting device of Patent Document 1 captures an image of the returned drug and analyzes the contour thereof to detect the position of the returned drug. Then, the returned drug is adsorbed and transferred based on the detected position, and is automatically returned to the storage location. However, when recognizing the position of the returned drug to be transferred, if the returned drugs are in contact with each other or partially overlap, the outline becomes unclear and the position of one drug cannot be accurately detected. In some cases.

さらに、特許文献1の装置では、返品薬剤を格納する返品薬収納部を備えている。返品薬収納部は返品薬剤の種類毎に区分された複数の収納カセットを有しており、返品薬収納部から引き出された収納カセットに、返品薬剤が仕分けされて格納されるようになっている。このため、特許文献1の装置では、返品薬剤の種類毎に収納カセットを必要とするため、多数の収納カセットを必要とする。さらに、返品薬剤を格納するときに収納カセットを返品薬収納部から引き出すためのスペースを必要とする。この結果、返品薬収納部が大型化してしまう。一方、従来のアンプル払出装置の格納部は、薬種毎に専用のカセットが備えられ、薬剤師により取り出されて蓋を開けて1本ずつ収納されるという運用がなされている。このため、カセットごとに収容容器、蓋、排出機構が搭載されるため、1つのカセットが大型され、それが何種も搭載されるため、さらに大型化されている。 Further, the device of Patent Document 1 includes a returned drug storage unit for storing the returned drug. The returned medicine storage unit has a plurality of storage cassettes classified according to the type of returned medicine, and the returned medicine is sorted and stored in the storage cassette drawn from the returned medicine storage unit. .. Therefore, the device of Patent Document 1 requires a storage cassette for each type of returned drug, and therefore requires a large number of storage cassettes. In addition, space is required to withdraw the storage cassette from the returned drug storage section when storing the returned drug. As a result, the returned medicine storage unit becomes large. On the other hand, the storage unit of the conventional ampoule dispensing device is provided with a dedicated cassette for each drug type, and is operated by being taken out by a pharmacist, opening the lid, and storing one by one. For this reason, since a storage container, a lid, and a discharge mechanism are mounted on each cassette, one cassette is made large, and many kinds of it are mounted, so that the size is further increased.

そこで、本願出願人は、特許文献2,3において、種類、形状、大きさ、使用期限等の性状が種々異なり、かつ非整列状態で供給された薬剤を、自動的に認識して高い自由度を確保して格納することができる薬剤仕分装置を提案している。特に特許文献3の薬剤仕分装置では、薬剤同士が接触している場合や部分的に重なり合っている場合でも、正確に1つの薬剤の位置を検出でき、また薬剤を仕分けして格納する格納部をコンパクト化することができる。 Therefore, in Patent Documents 2 and 3, the applicant of the present application automatically recognizes drugs supplied in a non-aligned state with various properties such as type, shape, size, expiration date, etc., and has a high degree of freedom. We are proposing a drug sorting device that can secure and store the drug. In particular, in the drug sorting device of Patent Document 3, even when the drugs are in contact with each other or partially overlapped with each other, the position of one drug can be accurately detected, and a storage unit for sorting and storing the drugs is provided. It can be made compact.

特開2013−215343号公報Japanese Unexamined Patent Publication No. 2013-215343 国際公開2015/170761号公報International Publication 2015/170761 国際公開2015/170762号公報International Publication 2015/170762

しかし、特許文献2,3の薬剤仕分装置でも、返品薬剤を認識する画像中に異物や汚れ、複数の薬剤、あるいは認識できない姿勢の返品薬剤が存在していたり、返品薬剤が認識範囲外にあると、返品薬剤を正しく認識できない場合がある。このようなエラーがある場合、認識部で撮影された画像を表示しても、画像中のどの部分がエラーの原因になっているのか分からず、エラーの原因箇所を取り除くのに時間がかかっていた。 However, even in the drug sorting apparatus of Patent Documents 2 and 3, foreign substances and stains, a plurality of drugs, or a returned drug in an unrecognizable posture are present in the image recognizing the returned drug, or the returned drug is out of the recognition range. In some cases, the returned drug may not be recognized correctly. When there is such an error, even if the image taken by the recognition unit is displayed, it is not possible to know which part of the image is the cause of the error, and it takes time to remove the cause of the error. rice field.

そこで、本発明は、異物や汚れ、複数の薬剤、あるいは認識できない姿勢の薬剤が存在する等のエラーの原因箇所が容易に理解することができ、迅速にエラーの原因を取り除くことができる薬剤認識装置を提供することを課題とする。 Therefore, in the present invention, the cause of an error such as foreign matter or dirt, a plurality of drugs, or a drug having an unrecognizable posture can be easily understood, and the cause of the error can be quickly removed. The subject is to provide the device.

前記課題を解決するための第1の手段として、本発明は、
トレーから取り出した薬剤を載置する薬剤載置部と、
前記薬剤載置部に載置された薬剤を撮影する撮影部と、
前記撮影部で撮影された薬剤を認識する認識部とを備えた薬剤認識装置において、
前記撮影部で撮影された画像に基づいて異物又は薬剤があるか否かを判別する判別部を有し、
前記判別部は前記薬剤認識装置の電源立上げ時に前記画像中に異物又は薬剤があると判別すると、異物又は薬剤を除去するように促すことを特徴とする。
前記課題を解決するための第2の手段として、本発明は、
トレーから取り出した薬剤を載置する薬剤載置部と、
前記薬剤載置部に載置された薬剤を撮影する撮影部と、
前記撮影部で撮影された薬剤を認識する認識部とを備えた薬剤認識装置において、
前記撮影部で撮影された画像に基づいて異物又は薬剤があるか否かを判別する判別部を有し、
前記判別部による判別処理を前記薬剤認識装置の電源立上げ時に実行することを特徴とする。
前記判別部は前記画像の一部を抽出した抽出画像の有無に基づいて異物又は薬剤があるか否かを判別することが好ましい。
前記薬剤載置部の異物又は薬剤を取り除く旨の指示内容を表示する表示部を備えることが好ましい。
前記表示部は、前記画像中の異物又は薬剤がある部分を識別する識別マークと、前記画像とから作成されるエラー画像を表示することが好ましい。
As a first means for solving the above-mentioned problems, the present invention is:
A drug placement section on which the drug taken out of the tray is placed,
An imaging unit that photographs the drug placed on the drug placement unit,
In a drug recognition device provided with a recognition unit that recognizes a drug imaged by the imaging unit,
It has a discriminating unit that determines whether or not there is a foreign substance or a drug based on the image taken by the photographing unit.
The discriminating unit is characterized in that when it determines that there is a foreign substance or a drug in the image when the power supply of the drug recognition device is turned on, it prompts the removal of the foreign substance or the drug.
As a second means for solving the above-mentioned problems, the present invention is:
A drug placement section on which the drug taken out of the tray is placed,
An imaging unit that photographs the drug placed on the drug placement unit,
In a drug recognition device provided with a recognition unit that recognizes a drug imaged by the imaging unit,
It has a discriminating unit that determines whether or not there is a foreign substance or a drug based on the image taken by the photographing unit.
It is characterized in that the discrimination process by the discrimination unit is executed when the power supply of the drug recognition device is turned on.
It is preferable that the discriminating unit determines whether or not there is a foreign substance or a drug based on the presence or absence of an extracted image obtained by extracting a part of the image.
It is preferable to provide a display unit for displaying the content of the instruction to remove the foreign substance or the drug in the drug placement unit.
It is preferable that the display unit displays an identification mark for identifying a portion of the image where a foreign substance or a drug is present, and an error image created from the image.

前記判別部は、前記抽出画像の個数が複数であるとき、前記複数薬剤と判別するように構成されていることが好ましい。 When the number of the extracted images is a plurality, the discriminating unit is preferably configured to discriminate from the plurality of drugs.

前記判別部は、前記抽出画像のピクセル数が所定の閾値以下のとき、前記異物であると判別するように構成されていることが好ましい。 It is preferable that the discrimination unit is configured to discriminate as the foreign matter when the number of pixels of the extracted image is equal to or less than a predetermined threshold value.

前記判別部は、前記抽出画像のエッジ輝度が所定の閾値以下のとき、前記薬剤載置部の汚れであると判別するように構成されていることが好ましい。 It is preferable that the discriminating portion is configured to discriminate that the drug placing portion is dirty when the edge brightness of the extracted image is equal to or less than a predetermined threshold value.

前記判別部は、前記抽出画像の中心を中心点とし該中心点からの距離が最大となる点を通る円の面積に対する前記画像の面積の比で表される真円度が所定の閾値以上であるとき、前記立ち薬剤であると判別するように構成されていることが好ましい。 In the discriminating unit, the roundness represented by the ratio of the area of the image to the area of the circle passing through the point where the center point of the extracted image is the center point and the distance from the center point is maximum is equal to or higher than a predetermined threshold value. At some point, it is preferably configured to determine that it is the standing drug.

前記判別部は、前記抽出画像の少なくとも一部が前記撮影部による撮影領域の内側にある所定の解析領域から外れているとき、前記範囲外薬剤と判定するように構成されていることが好ましい。 It is preferable that the discriminating unit is configured to determine that the drug is out of range when at least a part of the extracted image is out of a predetermined analysis region inside the imaging region by the imaging unit.

前記表示部は、前記異常に対する対処方法を表示することが好ましい。この表示された対処方法を見て、ユーザは異常に対して迅速・確実に対処することができる。 It is preferable that the display unit displays a coping method for the abnormality. By seeing this displayed coping method, the user can quickly and surely deal with the abnormality.

前記表示部は、前記複数薬剤、異物、薬剤載置部の汚れ、立ち薬剤、範囲外薬剤の少なくともいずれかを前記異常の原因として表示することが好ましい。これにより、異常の原因を容易に理解できるので、ユーザは疑念を抱くことなく、異常の原因に対する対処を確実に行うことができる。 It is preferable that the display unit displays at least one of the plurality of drugs, a foreign substance, a stain on the drug placing portion, a standing drug, and an out-of-range drug as the cause of the abnormality. As a result, the cause of the abnormality can be easily understood, and the user can surely deal with the cause of the abnormality without any doubt.

前記表示部は、前記薬剤認識装置を再始動するためのリスタートキーを表示することが好ましい。リスタートキーを押すまでは再始動されないので、あわてることなく、異常の原因を除去することができる。 It is preferable that the display unit displays a restart key for restarting the drug recognition device. Since it is not restarted until the restart key is pressed, the cause of the abnormality can be eliminated without any hassle.

前記リスタートキーが押されても、前記判別部が前記画像中に異常があると判別すると、前記表示部は、前記画像中の異常がある部分を識別する識別マークと前記画像とから作成されるエラー画像を表示するするとともに、前記薬剤載置部の異物又は薬剤を取り除く旨の指示内容と対処方法とを表示することが好ましい。異常の原因を除去する対処が不十分のままリスタートキーが押されれば、異常の内容を表示するよりも、いち早く薬剤を取り除くよう指示されるので、迅速に再始動が行える。 When the discriminating unit determines that there is an abnormality in the image even if the restart key is pressed, the display unit is created from the identification mark for identifying the abnormal portion in the image and the image. In addition to displaying the error image, it is preferable to display the content of the instruction to remove the foreign substance or the drug in the drug placing portion and the coping method. If the restart key is pressed with insufficient measures to eliminate the cause of the abnormality, the patient will be instructed to remove the drug as soon as possible rather than displaying the details of the abnormality, so the restart can be performed quickly.

前記判別部は、前記薬剤認識装置の電源立上げ時に、前記画像中に異物又は薬剤があるか否かを判別し、
前記判別部が前記画像中に異物又は薬剤があると判別すると、前記画像中の前記異物又は薬剤がある部分を識別する識別マークと前記画像とから作成されるエラー画像を表示するとともに、前記薬剤載置部の異物又は薬剤を取り除く旨の指示内容と対処方法とを表示することが好ましい。
停電により電源が落ちたとき、処理中の異物又は薬剤が認識部に残っている場合があるが、停電が復旧して電源が立ち上がったとき、認識部に残っている異物又は薬剤を除去するよう促すことで、正常に動作を開始することができる。
The discrimination unit determines whether or not there is a foreign substance or a drug in the image when the power of the drug recognition device is turned on.
When the discriminating unit determines that there is a foreign substance or a drug in the image, an error image created from the identification mark for identifying the portion of the image containing the foreign substance or the drug and the image is displayed, and the drug is displayed. It is preferable to display the content of the instruction to remove the foreign substance or the drug in the mounting portion and the coping method.
When the power is turned off due to a power failure, foreign matter or chemicals being processed may remain in the recognition unit, but when the power failure is restored and the power is turned on, the foreign matter or chemicals remaining in the recognition unit should be removed. By prompting, the operation can be started normally.

本発明によれば、停電により電源が落ちたとき、処理中の返品薬剤が認識部に残っている場合があるが、停電が復旧して電源が立ち上がったとき、認識部に残っている返品薬剤を除去するよう促すことで、正常に動作を開始することができる。 According to the present invention, when the power is turned off due to a power failure, the returned drug being processed may remain in the recognition unit, but when the power failure is restored and the power is turned on, the returned drug remaining in the recognition unit may remain. By urging you to remove the, you can start the operation normally.

本発明の実施形態に係る返品薬剤払出装置の模式的な正面図。The schematic front view of the returned medicine dispensing apparatus which concerns on embodiment of this invention. 図1のII-II線から見た返品薬剤払出装置のレイアウトを示す模式図。The schematic diagram which shows the layout of the returned medicine dispensing apparatus seen from the II-II line of FIG. 図1のIII-III線から見た返品薬剤払出装置のレイアウトを示す模式。A schematic showing the layout of the returned drug dispensing device as seen from the line III-III in FIG. 本発明の実施形態に係る返品薬剤払出装置の外観を示す斜視図(a)、返品薬剤払出装置が設置される注射薬払出ラインの正面図(b)。A perspective view (a) showing the appearance of the returned drug dispensing device according to the embodiment of the present invention, and a front view (b) of an injectable drug dispensing line in which the returned drug dispensing device is installed. 受入部の模式的な正面図。Schematic front view of the receiving part. 返品トレーの模式的な平面図。Schematic plan view of the return tray. 昇降部の模式的な正面図。Schematic front view of the elevating part. 直交型ロボットの模式的な正面図。Schematic front view of an orthogonal robot. 認識部と非格納薬剤配置部の模式的な平面図。Schematic plan view of the recognition part and the non-stored drug placement part. ラベル読取部の模式的な平面図。Schematic plan view of the label reader. スカラー型ロボットとサポートトレーの模式的な平面図。Schematic plan view of a scalar robot and a support tray. スカラー型ロボットとサポートトレーの模式的な側面図。Schematic side view of a scalar robot and a support tray. 格納部の模式的な正面図。Schematic front view of the housing. 格納部の模式的な正面図。Schematic front view of the housing. 格納トレーの模式的な平面図。Schematic plan view of the storage tray. 認識部のブロック図。Block diagram of the recognition unit. 取り扱い対象の返品薬剤が写る、2値化処理後のカメラの画像を示す図。The figure which shows the image of the camera after the binarization process which shows the returned medicine to be handled. 取り扱い対象外の返品薬剤が写る、2値化処理後のカメラの画像を示す図。The figure which shows the image of the camera after the binarization process which shows the returned medicine which is not the object of handling. 返品薬剤の大きさの測定方法を説明するための図。The figure for demonstrating the measuring method of the size of the returned medicine. 返品薬剤の大きさの測定方法を説明するためのさらなる図。A further diagram to illustrate how to measure the size of the returned drug. 認識部の半透明板を示す斜視図。The perspective view which shows the translucent plate of a recognition part. 返品薬剤が解析範囲からはみ出すのを防止するガード部を示す仮置き部の平面図。A plan view of a temporary placement portion showing a guard portion that prevents the returned drug from exceeding the analysis range. 図21のXXII-XXII線断面図。FIG. 21 is a sectional view taken along line XXII-XXII in FIG. 吸着位置の概念を示す模式図。The schematic diagram which shows the concept of a suction position. 凸面度の値が低い場合の吸着位置の決定方法を示す概念図。The conceptual diagram which shows the method of determining the suction position when the value of the degree of convexity is low. 凸面度の値が高い場合の吸着位置の決定方法を示す概念図。The conceptual diagram which shows the method of determining the suction position when the value of the degree of convexity is high. ラベルにツマミを有する薬剤(アンプル)の平面図。Top view of the drug (ampoule) having a knob on the label. 図26の薬剤の吸着位置の決定方法を示す図。The figure which shows the method of determining the adsorption position of the drug of FIG. 26. 解析範囲外薬剤の判定を示す仮置き部の平面図。The plan view of the temporary placement part which shows the determination of the medicine which is out of the analysis range. ディスプレイに表示されるホーム画面を示す図。Diagram showing the home screen shown on the display. エラーが表示されたホーム画面を示す図。The figure which shows the home screen which displayed the error. 複数薬剤のエラー画面を示す図。The figure which shows the error screen of a plurality of drugs. 扉開錠のポップアップ画面を示す図。The figure which shows the pop-up screen of a door unlocking. 立ち薬剤のエラー画面を示す図。The figure which shows the error screen of the standing medicine. 範囲外薬剤のエラー画面を示す図。The figure which shows the error screen of the out-of-range drug. 仮置き部の薬品取り除きのエラー画面を示す図。The figure which shows the error screen of the chemical removal of a temporary place part. ラベル読取部の薬品取り除きのエラー画面を示す図。The figure which shows the error screen of the chemical removal of a label reading part. 電源立上時の薬品取り除きのエラー画面を示す図。The figure which shows the error screen of chemical removal at the time of power-up. 返品薬剤が認識部の仮置き部から格納部または非格納薬剤配置部に配置されるまでの流れを示すフローチャート図。The flowchart which shows the flow from the temporary storage part of the recognition part to the place which is placed in the storage part or the non-stored medicine placement part. 図38の異常判定2のサブルーチンのフローチャート。The flowchart of the subroutine of abnormality determination 2 of FIG. 38. 返品薬剤が認識部の仮置き部から格納部または非格納薬剤配置部に配置されるまでの流れの図38に続くフローチャート。The flowchart following FIG. 38 of the flow from the temporary storage part of the recognition part to the placement of the returned medicine in the storage part or the non-storage medicine placement part. 図40の異常判定2のサブルーチンのフローチャート。The flowchart of the subroutine of abnormality determination 2 of FIG. 40. 形状解析処理のフローチャート。Flowchart of shape analysis processing. 図42の薬品領域抽出処理のサブルーチンのフローチャート。The flowchart of the subroutine of the chemical area extraction process of FIG. 42. 図42の吸着座標・オフセットの決定処理のサブルーチンのフローチャート。The flowchart of the subroutine of the determination process of the suction coordinate / offset of FIG. 42.

(装置の概要)
以下、返品薬を仕分けして格納する返品薬剤供給装置1を例として、本発明の一実施形態を説明する。図1から図6は、本発明の実施形態に係る返品薬剤供給装置1を示す。返品薬剤供給装置1は、受入部100、昇降部200、認識部300、非格納薬剤配置部400、格納部500、及び払出部600を備える。また、返品薬剤供給装置1は、直交型ロボット700、スカラー型ロボット800、及びサポートトレー900を備える。さらに、返品薬剤供給装置1は、図1に模式的に示す制御装置1000を備える。制御装置1000は、図4に図示する制御盤1001(ディスプレイ1002を備える)からの入力、センサやカメラからの入力等に基づいて、返品薬剤供給装置1の動作を統括的に制御する。
(Overview of the device)
Hereinafter, an embodiment of the present invention will be described by taking as an example a returned drug supply device 1 that sorts and stores returned drugs. 1 to 6 show a returned drug supply device 1 according to an embodiment of the present invention. The returned drug supply device 1 includes a receiving unit 100, an elevating unit 200, a recognition unit 300, a non-stored drug arranging unit 400, a storage unit 500, and a dispensing unit 600. Further, the returned drug supply device 1 includes an orthogonal robot 700, a scalar robot 800, and a support tray 900. Further, the returned drug supply device 1 includes a control device 1000 schematically shown in FIG. The control device 1000 comprehensively controls the operation of the returned drug supply device 1 based on the input from the control panel 1001 (which includes the display 1002) shown in FIG. 4, the input from the sensor, the camera, and the like.

返品薬剤供給装置1の主な機能の概要は、以下の通りである。返品薬剤供給装置1は、例えばアンプル2A、バイアル2B、樹脂アンプル2Cである返品薬剤2(図6参照)の形状、大きさ(長さL1と直径ないし幅W)、種類、使用期限のような性状を認識する。本実施形態では、返品薬剤2には、種類、使用期限等に関する情報を含む文字情報やバーコードが印刷されたラベル3が貼り付けられている。返品薬剤供給装置1は、ラベル3に表示されたこれらの情報を読み取る。また、返品薬剤供給装置1は、認識後の返品薬剤2をその返品薬剤2の識別情報(1個1個の返品薬剤2に付与されたユニークな情報)と関連付けて一時的に格納し、処方データ(例えば電子カルテシステムである上位のシステム(HIS: Hospital Information System)から受信する。)に基づいて、払い出しを行う。格納時には、格納される返品薬剤2の大きさに応じて格納領域が設定される。返品薬剤2の格納は、設定された格納領域に配置され、かつ払出時に個別の返品薬剤2を取出可能となる態様で行われる。さらに、返品薬剤供給装置1は、使用期限が過ぎている返品薬剤2を排出する。 The outline of the main functions of the returned drug supply device 1 is as follows. The returned drug supply device 1 includes, for example, the shape, size (length L1 and diameter or width W), type, and expiration date of the returned drug 2 (see FIG. 6) which is an ampoule 2A, a vial 2B, and a resin ampoule 2C. Recognize the properties. In the present embodiment, a label 3 on which character information including information on the type, expiration date, etc. and a barcode are printed is attached to the returned drug 2. The returned drug supply device 1 reads these information displayed on the label 3. Further, the returned drug supply device 1 temporarily stores the returned drug 2 after recognition in association with the identification information of the returned drug 2 (unique information given to each returned drug 2), and prescribes the returned drug. Payment is made based on data (for example, received from a higher-level system (HIS: Hospital Information System), which is an electronic medical record system). At the time of storage, a storage area is set according to the size of the returned drug 2 to be stored. The returned drug 2 is stored in a set storage area, and the returned drug 2 can be individually taken out at the time of withdrawal. Further, the returned drug supply device 1 discharges the returned drug 2 whose expiration date has passed.

なお、本明細書で言う「薬剤」は、図6に示すように容器に収容された薬品を意味する。したがって、「薬剤の形状及び大きさ」は、容器の形状及び大きさを意味し、「薬剤の種類、使用期限などの情報」は、容器に収容された薬品の種類、使用期限などの情報を意味する。また、実際には、「使用期限」の用語に代わって、「有効期限」の用語が使用される場合がある。ただ、これらの用語は実質的には同義である。そこで、本明細書では、混乱を回避するために、「有効期限」を用いずに、「使用期限」のみを使用する。 The term "drug" as used herein means a drug contained in a container as shown in FIG. Therefore, "the shape and size of the drug" means the shape and size of the container, and "information such as the type and expiration date of the drug" refers to information such as the type and expiration date of the drug contained in the container. means. Also, in practice, the term "expiration date" may be used in place of the term "expiration date". However, these terms are practically synonymous. Therefore, in this specification, in order to avoid confusion, only the "expiration date" is used without using the "expiration date".

(受入部)
図1から図3に示すように、受入部100は、返品薬剤供給装置1を正面から見て左上手前側に配置されている。
(Reception department)
As shown in FIGS. 1 to 3, the receiving unit 100 is arranged on the upper left front side when the returned drug supply device 1 is viewed from the front.

図5を併せて参照すると、受入部100は、水平方向(図においてX方向)に互いに対向して配置された固定のラック部材101を備える。ラック部材101には、複数の返品トレー4を多段配置された状態で保持するための、複数対のレール溝101a,101aが設けられている。 Referring to FIG. 5, the receiving unit 100 includes a fixed rack member 101 arranged so as to face each other in the horizontal direction (X direction in the drawing). The rack member 101 is provided with a plurality of pairs of rail grooves 101a and 101a for holding the plurality of return trays 4 in a multi-stage arrangement.

図6を参照すると、返品トレー4は、図において上方が開口したトレー本体4aと、トレー本体4aの上端縁に設けられたフランジ状部4bとを備える。図6に示すように、返品トレー4に収容されている返品薬剤2(例えばアンプル2A、バイアル2B、樹脂アンプル2C)は、形状、大きさ(長さL1と幅W)、種類、使用期限のような性状が異なっている。また、返品トレー4に収容されている返品薬剤2の向きと姿勢は揃えられておらず、互いに異なる。つまり、返品トレー4に収容されている返品薬剤2は、非整列状態である。ここで返品薬剤2の向きは、図においてXY平面において返品薬剤2の長手方向(返品薬剤2の軸線A)が延びる方向をいう。返品薬剤2についての向きという用語は、返品薬剤2の軸線Aが延びる向きに加え、返品薬剤2の先端2aと基端2bの向いている方向を含む場合がある。ただし、返品トレー4に収容されている返品薬剤2の形状、大きさ、種類、使用期限のような性状が統一されていてもよい。また、返品トレー4に収容されている返品薬剤2の向き及び姿勢が揃えられていてもよい。返品トレー4中の返品薬剤2は、互いに部分的に重なり合っていてもよい。 Referring to FIG. 6, the return tray 4 includes a tray body 4a having an upper opening in the figure and a flange-shaped portion 4b provided on the upper end edge of the tray body 4a. As shown in FIG. 6, the returned drug 2 (for example, ampoule 2A, vial 2B, resin ampoule 2C) contained in the return tray 4 has a shape, a size (length L1 and a width W), a type, and an expiration date. The properties are different. In addition, the orientations and postures of the returned medicines 2 contained in the returned tray 4 are not the same and are different from each other. That is, the returned drug 2 contained in the return tray 4 is in an unaligned state. Here, the direction of the returned drug 2 refers to the direction in which the longitudinal direction of the returned drug 2 (the axis A of the returned drug 2) extends in the XY plane in the figure. The term orientation with respect to the returned drug 2 may include the orientation of the tip 2a and the proximal end 2b of the returned drug 2 in addition to the direction in which the axis A of the returned drug 2 extends. However, the shape, size, type, expiration date, and other properties of the returned drug 2 contained in the return tray 4 may be unified. Further, the orientation and posture of the returned medicine 2 stored in the returned tray 4 may be the same. The returned drug 2 in the return tray 4 may partially overlap each other.

図5に示すように、ラック部材101に設けられたレール溝101a,101aにより、返品トレー4のフランジ状部4bが支持されている。レール溝101a,101aは、ラック部材101の図においてY方向手前側の端面から奥側の端面まで貫通するように設けられている。そのため、医療従業者のような作業者は、返品薬剤供給装置1の正面側から、返品トレー4をレール溝101a,101aに対して出し入れできる。また、後述する昇降部200は、返品薬剤供給装置1の背面側から返品トレー4をレール溝101a,101aに対して出し入れできる。 As shown in FIG. 5, the flange-shaped portion 4b of the return tray 4 is supported by the rail grooves 101a and 101a provided in the rack member 101. The rail grooves 101a and 101a are provided so as to penetrate from the end face on the front side in the Y direction to the end face on the back side in the drawing of the rack member 101. Therefore, a worker such as a medical worker can put the return tray 4 in and out of the rail grooves 101a and 101a from the front side of the return drug supply device 1. Further, the elevating unit 200, which will be described later, allows the return tray 4 to be taken in and out of the rail grooves 101a and 101a from the back side of the return drug supply device 1.

受入部100は、図5において右側のラック部材101に設けられた動作準備ボタン(図示なし)を備える。動作準備ボタンは、収納する返品トレー4に対して1つずつ設けられている。作業者が返品トレー4を受入部100に収納後、対応する動作準備ボタンを押下することで、制御装置1000により昇降部200は、押下された動作準備ボタンに対応する返品トレー4を引き出すことができる状態となる。 The receiving unit 100 includes an operation preparation button (not shown) provided on the rack member 101 on the right side in FIG. One operation preparation button is provided for each return tray 4 to be stored. After the operator stores the return tray 4 in the receiving unit 100, the corresponding operation preparation button is pressed, so that the elevating unit 200 can pull out the return tray 4 corresponding to the pressed operation preparation button by the control device 1000. It will be ready.

(昇降部)
図1から図3に示すように、昇降部200は、返品薬剤供給装置1を正面から見て左奥に配置されている。
(Elevating part)
As shown in FIGS. 1 to 3, the elevating unit 200 is arranged on the left back side when the returned drug supply device 1 is viewed from the front.

図7を併せて参照すると、昇降部200は、Z方向に延びる固定の直動ガイド201と、直動ガイド201に沿って昇降するキャリッジ202と、キャリッジ202に搭載されたテーブル203を備える。テーブル203は底部203aと、底部203aに左右に設けられた側部203b,203bと、底部203aの奥側(Y方向の奥側)に設けられた端部203cとを備える。テーブル203は手前側(Y方向の手前側)が開放している。側部203b,203bには、レール溝204,204が設けられている。レール溝204,204により、返品トレー4のフランジ状部4bが支持され、それによってテーブル203に返品トレー4が保持される。 Referring to FIG. 7, the elevating unit 200 includes a fixed linear motion guide 201 extending in the Z direction, a carriage 202 that moves up and down along the linear motion guide 201, and a table 203 mounted on the carriage 202. The table 203 includes a bottom portion 203a, side portions 203b and 203b provided on the left and right sides of the bottom portion 203a, and end portions 203c provided on the back side (back side in the Y direction) of the bottom portion 203a. The front side (front side in the Y direction) of the table 203 is open. Rail grooves 204 and 204 are provided on the side portions 203b and 203b. The rail grooves 204, 204 support the flange-shaped portion 4b of the return tray 4, thereby holding the return tray 4 on the table 203.

引き続き図7を参照すると、底部203aには返品薬剤供給装置1の奥行方向(Y方向)に延びる固定の直動ガイド205が設けられている。また、この直動ガイド205に沿って水平移動するキャリッジ206に、フック207の基端側が固定されている。 Continuing to refer to FIG. 7, the bottom 203a is provided with a fixed linear motion guide 205 extending in the depth direction (Y direction) of the returned drug supply device 1. Further, the base end side of the hook 207 is fixed to the carriage 206 that moves horizontally along the linear motion guide 205.

昇降部200は、受入部100から1個の返品トレー4を取り出して、後述する認識部300と同様の高さ位置(図1において符号Hで概念的に示す)まで降下させることができる。また、昇降部200は、認識部300と同様の高さ位置Hから返品トレー4を受入部100に戻すことができる。 The elevating unit 200 can take out one return tray 4 from the receiving unit 100 and lower it to the same height position as the recognition unit 300 described later (conceptually indicated by reference numeral H in FIG. 1). Further, the elevating unit 200 can return the return tray 4 to the receiving unit 100 from the same height position H as the recognition unit 300.

(直交型ロボット)
図8を参照すると、直交型ロボット700は、図示しない真空源から図示しない吸込管を通じて供給される真空により返品薬剤2を解放可能に吸着する吸着ノズル701を備える。吸着ノズル701の先端には、ゴム製の吸着パッド702が取り付けられている。図1から図3を併せて参照すると、吸着ノズル701が返品薬剤2を吸着保持し、又は吸着保持した返品薬剤2を吸着解除により離すことができる範囲が、昇降部200(前述の高さ位置Hにあるときの返品トレー4)の全範囲と、認識部300及び非格納薬剤配置部400を含むように、直交型ロボット700は構成されている。
(Orthogonal robot)
Referring to FIG. 8, the orthogonal robot 700 includes a suction nozzle 701 that releasably sucks the returned drug 2 by a vacuum supplied from a vacuum source (not shown) through a suction tube (not shown). A rubber suction pad 702 is attached to the tip of the suction nozzle 701. Referring to FIGS. 1 to 3, the range in which the adsorption nozzle 701 can adsorb and hold the returned drug 2 or release the returned drug 2 by adsorbing and holding it is the elevating part 200 (the above-mentioned height position). The orthogonal robot 700 is configured to include the entire range of the return tray 4) when it is in H, the recognition unit 300, and the non-stored drug placement unit 400.

直交型ロボット700(吸着ノズル701)は、昇降部200のテーブル203(高さ位置H)に保持された返品トレー4から返品薬剤2を吸着保持して取り出し、認識部300が備える後述の仮置き部301に移送できる。また、直交型ロボット700は仮置き部301から返品薬剤2を吸着保持して取り出し、認識部300が備える後述のラベル読取部302に移送できる。さらに、直交型ロボット700は、ラベル読取部302から返品薬剤2を吸着保持して取り出し、非格納薬剤配置部400に移送できる。 The orthogonal robot 700 (suction nozzle 701) sucks and holds the returned drug 2 from the returned tray 4 held on the table 203 (height position H) of the elevating unit 200, holds it, and takes it out, and temporarily places it as described later provided in the recognition unit 300. Can be transferred to section 301. Further, the orthogonal robot 700 can adsorb and hold the returned drug 2 from the temporary placement unit 301, take it out, and transfer it to the label reading unit 302 described later provided in the recognition unit 300. Further, the orthogonal robot 700 can adsorb and hold the returned drug 2 from the label reading unit 302, take it out, and transfer it to the non-stored drug arranging unit 400.

直交型ロボット700は、受入部100よりも下方側で返品薬剤供給装置1の奥行き方向(Y方向)に延びる固定のY軸ビーム703と、このY軸ビーム703に沿って移動するキャリッジ704とを備える。キャリッジ704には、返品薬剤供給装置1の幅方向(X方向)に延びるX軸ビーム705が固定されている。また、X軸ビーム705上を移動するキャリッジ706が設けられ、このキャリッジ706にヘッド707が搭載されている。ヘッド707にはボール螺子機構により昇降する昇降ロッド708が設けられている。昇降ロッド708の下端には、ブラケット709を介して吸着ノズル701が取り付けられている。ブラケット709と吸着ノズル701の間にはばね710が介装されている。昇降ロッド708がZ軸周りに回転することにより、吸着ノズル701もZ軸周りに回転できる。 The orthogonal robot 700 has a fixed Y-axis beam 703 extending in the depth direction (Y direction) of the returned drug supply device 1 below the receiving portion 100, and a carriage 704 moving along the Y-axis beam 703. Be prepared. An X-axis beam 705 extending in the width direction (X direction) of the returned drug supply device 1 is fixed to the carriage 704. Further, a carriage 706 that moves on the X-axis beam 705 is provided, and the head 707 is mounted on the carriage 706. The head 707 is provided with an elevating rod 708 that moves up and down by a ball screw mechanism. A suction nozzle 701 is attached to the lower end of the elevating rod 708 via a bracket 709. A spring 710 is interposed between the bracket 709 and the suction nozzle 701. By rotating the elevating rod 708 around the Z axis, the suction nozzle 701 can also rotate around the Z axis.

吸着ノズル701に吸着保持された返品薬剤2は、キャリッジ706の直動によりX方向に移動し、キャリッジ704の直動によりY方向に移動し、昇降ロッド708の昇降によりZ方向に移動する。また、吸着ノズル701に吸着保持された返品薬剤2は、昇降ロッド708のZ軸周りの回転により、吸着ノズル701の軸線(Z軸)回りに回転する。 The returned drug 2 sucked and held by the suction nozzle 701 moves in the X direction by the linear motion of the carriage 706, moves in the Y direction by the linear motion of the carriage 704, and moves in the Z direction by the elevating and lowering of the elevating rod 708. Further, the returned drug 2 sucked and held by the suction nozzle 701 rotates around the axis (Z axis) of the suction nozzle 701 due to the rotation of the elevating rod 708 around the Z axis.

(認識部と非格納薬剤配置部)
図1から図3を参照すると、認識部300は、照明303とカメラ304を備える。照明303とカメラ304は、昇降部200の上方に位置している。また、認識部300は、カメラ304と共に本発明における認識部の一例を構成する仮置き部301とラベル読取部302を備える。仮置き部301とラベル読取部302は、返品薬剤供給装置1を正面から見て左下手前側に配置され、受入部100の下方に位置している。
(Recognition part and non-stored drug placement part)
Referring to FIGS. 1 to 3, the recognition unit 300 includes an illumination 303 and a camera 304. The illumination 303 and the camera 304 are located above the elevating portion 200. Further, the recognition unit 300 includes a temporary placement unit 301 and a label reading unit 302 that form an example of the recognition unit in the present invention together with the camera 304. The temporary storage unit 301 and the label reading unit 302 are arranged on the lower left front side when the returned drug supply device 1 is viewed from the front, and are located below the receiving unit 100.

図9を併せて参照すると、仮置き部301は、返品薬剤2が載置される半透明板305(薬剤載置部)と、この半透明板305の下側に配置された照明306と、半透明板305の上方に位置するカメラ307(撮影部)を備える。 Referring to FIG. 9, the temporary placement section 301 includes a semi-transparent plate 305 (drug loading section) on which the returned drug 2 is placed, a lighting 306 arranged under the semi-transparent plate 305, and the like. A camera 307 (photographing unit) located above the translucent plate 305 is provided.

図10を併せて参照すると、ラベル読取部302は、回転駆動される無端ベルト308と、この無端ベルト308上に配置されたローラ309とを備える。返品薬剤2は、無端ベルト308とローラ309が回転することで、それ自体の長手方向の軸線A回りに回転する。また、ラベル読取部302は照明310と図1にのみ図示するカメラ311を備える。さらに、ラベル読取部302はバーコードリーダ312を備える。 Referring to FIG. 10, the label reading unit 302 includes an endless belt 308 that is rotationally driven and a roller 309 arranged on the endless belt 308. The returned drug 2 rotates about its own longitudinal axis A by rotating the endless belt 308 and the roller 309. Further, the label reading unit 302 includes an illumination 310 and a camera 311 shown only in FIG. Further, the label reading unit 302 includes a barcode reader 312.

図9を参照すると、非格納薬剤配置部400は、詳細は後述するが返品薬剤供給装置1において取り扱い対象外の返品薬剤2、すなわち格納部500に原則的には格納しない返品薬剤2(非格納薬剤2’)を格納する薬剤配置部であって、仮置き部301に隣接し配置された2個の非格納薬剤配置箱401,402を備える。これらの非格納薬剤配置箱401,402は、後述する格納トレー5の配置溝と同様の非格納薬剤2’を保持するための配置溝を備える。 Referring to FIG. 9, the non-stored drug arranging unit 400 will be described in detail later, but the returned drug 2 that is not handled by the returned drug supply device 1, that is, the returned drug 2 (non-stored) that is not stored in the storage unit 500 in principle. It is a drug placement section for storing the drug 2'), and includes two non-storage drug placement boxes 401 and 402 arranged adjacent to the temporary placement section 301. These non-stored drug placement boxes 401 and 402 are provided with a placement groove for holding the non-stored drug 2'similar to the placement groove of the storage tray 5 described later.

(返品薬剤の認識完了までの動作)
ここで、受入部100の返品トレー4に収容された返品薬剤2に対する、向き及び姿勢と、種類、形状、大きさ、使用期限等の性状との認識が完了するまでの、返品薬剤供給装置1の動作を説明する。
(Operation until recognition of returned drug is completed)
Here, the returned drug supply device 1 until the recognition of the orientation and posture of the returned drug 2 stored in the return tray 4 of the receiving unit 100 and the properties such as the type, shape, size, and expiration date is completed. The operation of is explained.

まず、受入部100から昇降部200のテーブル203に返品トレー4が移載される。返品トレー4の移載後、テーブル203は、高さ位置H(図1参照)まで降下する。テーブル203が高さ位置Hまで降下した後に、認識部300による認識が開始される。まず、照明303からテーブル203上の返品トレー4に対して上方から照明光(指向性の高い光であることが好ましい)を照射しつつ、カメラ304による撮影を行う。そして、カメラ304で撮影した画像に基づいて、返品トレー4中の返品薬剤2の位置等が認識されて格納対象薬品とする。この認識処理の詳細に関しては後述する。この認識結果に基づいて、直交型ロボット700の吸着ノズル701が返品トレー4中の返品薬剤2を1個ずつ吸着保持し、仮置き部301の半透明板305上に移載する(図9参照)。この際、吸着ノズル701は、それ自体の軸線(Z軸)回りの回転により、吸着保持した返品薬剤2の向きを調節する。 First, the return tray 4 is transferred from the receiving unit 100 to the table 203 of the elevating unit 200. After the return tray 4 is transferred, the table 203 descends to the height position H (see FIG. 1). After the table 203 descends to the height position H, the recognition unit 300 starts recognition. First, the return tray 4 on the table 203 is irradiated with the illumination light (preferably light having high directivity) from above from the illumination 303, and the camera 304 takes a picture. Then, based on the image taken by the camera 304, the position of the returned medicine 2 in the returned tray 4 is recognized and the medicine is set as the storage target medicine. The details of this recognition process will be described later. Based on this recognition result, the suction nozzle 701 of the orthogonal robot 700 sucks and holds the returned medicine 2 in the return tray 4 one by one, and transfers it onto the translucent plate 305 of the temporary placement portion 301 (see FIG. 9). ). At this time, the adsorption nozzle 701 adjusts the direction of the returned drug 2 adsorbed and held by rotating around its own axis (Z axis).

仮置き部301では、返品薬剤2は、半透明板305上に載置される。照明306により半透明板305の下方に配置された照明306が半透明板305に向かって光を照射する。照明光は高輝度の光であることが好ましい。照明306が光を照射しつつ、カメラ307が半透明板305上の返品薬剤2を撮影する。カメラ307によって撮影された画像により、詳細は後述するが、返品薬剤2の形状、大きさ、及び向き(XY平面において軸線Aが延びる方向であって先端2aと基端2bが向いている方向も含む)が認識される。また、カメラ307によって撮影された画像により、返品薬剤2の吸着位置(直交型ロボット700の吸着ノズル701とスカラー型ロボット800の吸着ノズル801で吸着される位置)が算出される。返品薬剤2の吸着位置の算出は後に詳述する。カメラ307で撮影された画像による認識結果に基づいて、直交型ロボット700の吸着ノズル701が半透明板305上の返品薬剤2を吸着保持し、ラベル読取部302に移載する。この際、吸着ノズル701は、それ自体の軸線(Z軸)回りに回転により、吸着保持した返品薬剤2の向きを調節する。 In the temporary storage section 301, the returned drug 2 is placed on the translucent plate 305. The illumination 306 arranged below the translucent plate 305 by the illumination 306 irradiates the translucent plate 305 with light. The illumination light is preferably high-intensity light. The camera 307 photographs the returned drug 2 on the translucent plate 305 while the illumination 306 irradiates the light. The shape, size, and orientation of the returned drug 2 (the direction in which the axis A extends in the XY plane and the tip 2a and the proximal end 2b are facing), which will be described in detail later based on the image taken by the camera 307. Including) is recognized. Further, the suction position of the returned drug 2 (the position of being sucked by the suction nozzle 701 of the orthogonal robot 700 and the suction nozzle 801 of the scalar type robot 800) is calculated from the image taken by the camera 307. The calculation of the adsorption position of the returned drug 2 will be described in detail later. Based on the recognition result of the image taken by the camera 307, the suction nozzle 701 of the orthogonal robot 700 sucks and holds the returned drug 2 on the translucent plate 305 and transfers it to the label reading unit 302. At this time, the adsorption nozzle 701 adjusts the direction of the returned drug 2 adsorbed and held by rotating around its own axis (Z axis).

ラベル読取部302では、詳細は後述するが、無端ベルト308とローラ309の回転により、返品薬剤2がそれ自体の軸線A(図10参照)回りに回転する。この回転する返品薬剤2に対し、照明310から照明光を照射しつつ、ラベル読取装置(カメラ311及びバーコードリーダ312)がその返品薬剤2のラベル3を読み取る。カメラ311が撮影した画像により、返品薬剤2のラベル3に表示された使用期限等に関する文字情報が認識されると共に、軸線A回りの返品薬剤2の姿勢が認識される。また、カメラ311による撮影に加え、バーコードリーダ312によって、ラベル3に含まれるバーコードが読み取られる。カメラ311が撮影した画像とバーコードリーダ312により読み取られたバーコードにより、返品薬剤2の種類と使用期限が認識される。薬剤の種類及び使用期限の認識は、カメラ311が撮像した画像とバーコードリーダ312によるバーコードの読み取りのいずれか一方のみで行っても良い。例えば、返品薬剤2のラベル3に含まれるバーコードに返品薬剤2の種類と使用期限が含まれている場合、カメラ311を設けずにバーコードリーダ312のみを設け、バーコードリーダ312によるバーコードの読み取りによって、返品薬剤2の種類と使用期限を認識できる。認識終了後、ラベル3が上向き(Z方向向き)となる姿勢で返品薬剤2の軸線A回りの回転が停止するように、無端ベルト308とローラ309の回転が停止する。ラベル3が上向きであるか否かは、カメラ311の撮影画像に基づいて確認することができる。 In the label reading unit 302, which will be described in detail later, the rotation of the endless belt 308 and the roller 309 causes the returned drug 2 to rotate around its own axis A (see FIG. 10). The label reading device (camera 311 and bar code reader 312) reads the label 3 of the returned drug 2 while irradiating the rotating returned drug 2 with illumination light from the illumination 310. From the image taken by the camera 311, the character information regarding the expiration date and the like displayed on the label 3 of the returned drug 2 is recognized, and the posture of the returned drug 2 around the axis A is recognized. Further, in addition to the shooting by the camera 311, the barcode reader 312 reads the barcode included in the label 3. The type of the returned drug 2 and the expiration date are recognized by the image taken by the camera 311 and the barcode read by the barcode reader 312. The type of the drug and the expiration date may be recognized only by either the image captured by the camera 311 or the barcode read by the barcode reader 312. For example, when the barcode included in the label 3 of the returned drug 2 includes the type of the returned drug 2 and the expiration date, only the barcode reader 312 is provided without the camera 311 and the barcode by the barcode reader 312 is provided. By reading, the type of returned drug 2 and the expiration date can be recognized. After the recognition is completed, the rotation of the endless belt 308 and the roller 309 is stopped so that the rotation of the returned drug 2 around the axis A is stopped in the posture in which the label 3 faces upward (Z direction). Whether or not the label 3 is facing upward can be confirmed based on the captured image of the camera 311.

例えば、ラベル読取部302で認識された使用期限が既に経過している場合、あるいはラベル読取部302で使用期限が認識できなった場合、その返品薬剤2は、非格納薬剤2’として、直交型ロボット700の吸着ノズル701により吸着保持されて、非格納薬剤配置部400の非格納薬剤配置箱401,402に移載される。また、受入部100の返品トレー4のうちいずれか(例えば最下段の返品トレー4)を、非格納薬剤配置部400の一部として機能する非格納薬剤2’用のトレーとし、その非格納薬剤用返品トレー4に非格納薬剤配置箱401,402の非格納薬剤2’が戻される。 For example, if the expiration date recognized by the label reading unit 302 has already passed, or if the expiration date cannot be recognized by the label reading unit 302, the returned drug 2 is an orthogonal type as a non-stored drug 2'. It is adsorbed and held by the suction nozzle 701 of the robot 700, and is transferred to the non-stored drug placement boxes 401 and 402 of the non-stored drug placement unit 400. Further, any one of the return trays 4 of the receiving unit 100 (for example, the return tray 4 at the bottom) is used as a tray for the non-stored drug 2'that functions as a part of the non-stored drug placement unit 400, and the non-stored drug is used. The non-stored drug 2'of the non-stored drug placement boxes 401 and 402 is returned to the return tray 4.

(スカラー型ロボットとサポートトレー)
図11及び図12を参照すると、スカラー型ロボット800は、図示しない真空源から供給される真空により返品薬剤2を解放可能に吸着する吸着ノズル801を備える。吸着ノズル801の先端には、ゴム製の吸着パッド802が取り付けられている。吸着ノズル801が返品薬剤2を吸着保持し、又は吸着保持した返品薬剤2を吸着解除により離すことができる範囲が、認識部300のラベル読取部302と、格納部500が備えるすべての格納トレー5の全範囲と、後述する払出位置に配置された払出トレー8の全領域を含むように、スカラー型ロボット800は構成されている。
(Scalar type robot and support tray)
Referring to FIGS. 11 and 12, the scalar robot 800 includes a suction nozzle 801 that releasably adsorbs the returned drug 2 by a vacuum supplied from a vacuum source (not shown). A rubber suction pad 802 is attached to the tip of the suction nozzle 801. The range in which the suction nozzle 801 can adsorb and hold the returned drug 2 or release the adsorbed and held returned drug 2 by releasing the adsorption is the range in which the label reading unit 302 of the recognition unit 300 and all the storage trays 5 included in the storage unit 500 are provided. The scalar type robot 800 is configured to include the entire range of the payout tray 8 and the entire area of the payout tray 8 arranged at the payout position described later.

スカラー型ロボット800(吸着ノズル801)は、認識部300のラベル読取部302から返品薬剤2を吸着保持して取り出し、格納部500が備える後述の格納トレー5に移送できる。また、スカラー型ロボット800は、格納トレー5から返品薬剤2を吸着保持して取り出し、払出部600の後述する払出トレー8に移送できる。 The scalar type robot 800 (suction nozzle 801) can suck and hold the returned drug 2 from the label reading unit 302 of the recognition unit 300, take it out, and transfer it to the storage tray 5 provided in the storage unit 500, which will be described later. Further, the scalar type robot 800 can adsorb and hold the returned drug 2 from the storage tray 5 and take it out, and transfer it to the payout tray 8 described later in the payout unit 600.

スカラー型ロボット800は、返品薬剤供給装置1の高さ方向(Z方向)に延びる一対の固定の直動ガイド803,803と、これら直動ガイド803,803上を移動するキャリッジ804,804を備える。キャリッジ804,804によって、返品薬剤供給装置1の幅方向(X方向)に延びるX軸ビーム805の端部が支持されている。X軸ビーム805にベース806が固定されている。ベース806に連結された第1アーム807の基端側がZ軸回りに回動し、第1アーム807の先端側に連結された第2アーム808の基端側もZ軸回りに回動する。第2アーム808の先端側にヘッド809がZ軸回りに回動可能に取り付けられている。ヘッド809に固定されたブラケット810に、ばね811を介して吸着ノズル801が保持されている。ヘッド809には、図11にのみ図示するバーコードリーダ812と返品薬剤2を検知する有無検知センサ820とが搭載されている。バーコードリーダ812は、吸着ノズル801に対して、側方にずれた位置に搭載されており、吸着ノズル801の下方に位置する返品薬剤2に貼付されたラベル3のバーコードを斜め上方から読み取るようになっている。言い換えれば、バーコードリーダ812は、ラベル読取部302における返品薬剤2に対するバーコードリーダ312との位置関係と同様に、吸着ノズル801が対象の返品薬剤2の上方に位置するときに、返品薬剤2に貼付されたラベル3のバーコードに対向するように配置されている。 The scalar type robot 800 includes a pair of fixed linear motion guides 803 and 803 extending in the height direction (Z direction) of the returned drug supply device 1 and carriages 804 and 804 moving on these linear motion guides 803 and 803. .. Carriage 804,804 supports the end of the X-axis beam 805 extending in the width direction (X direction) of the returned drug supply device 1. The base 806 is fixed to the X-axis beam 805. The proximal end side of the first arm 807 connected to the base 806 rotates about the Z axis, and the proximal end side of the second arm 808 connected to the distal end side of the first arm 807 also rotates about the Z axis. A head 809 is rotatably attached to the tip end side of the second arm 808 around the Z axis. The suction nozzle 801 is held by the bracket 810 fixed to the head 809 via the spring 811. The head 809 is equipped with a barcode reader 812 (shown only in FIG. 11) and a presence / absence detection sensor 820 for detecting the returned drug 2. The bar code reader 812 is mounted at a position shifted laterally with respect to the suction nozzle 801 and reads the bar code of the label 3 affixed to the returned drug 2 located below the suction nozzle 801 from diagonally above. It has become like. In other words, the bar code reader 812 receives the returned drug 2 when the suction nozzle 801 is located above the returned drug 2 in the same manner as the positional relationship between the bar code reader 812 and the bar code reader 312 with respect to the returned drug 2 in the label reading unit 302. It is arranged so as to face the bar code of the label 3 affixed to.

有無検知センサ820は、本実施形態では、反射型の光電センサであって、吸着ノズル801の下方領域に向けて光を発行して、その反射光を受光することで、吸着ノズル801の下方領域における返品薬剤2の有無を検知するものである。 The presence / absence detection sensor 820 is a reflection type photoelectric sensor in the present embodiment, and emits light toward the lower region of the suction nozzle 801 and receives the reflected light to receive the reflected light in the lower region of the suction nozzle 801. It detects the presence or absence of the returned drug 2 in the above.

吸着ノズル801に吸着保持された返品薬剤2は、X軸ビーム805(キャリッジ804)の直動によりZ方向に移動し、第1アーム807と第2アーム808の回動によりXY平面上を移動する。また、吸着ノズル801に吸着された返品薬剤2は、第2アーム808の先端部に対するヘッド809の回転により吸着ノズル801の軸線(Z軸)回りに回動する。 The returned drug 2 sucked and held by the suction nozzle 801 moves in the Z direction by the direct motion of the X-axis beam 805 (carriage 804), and moves on the XY plane by the rotation of the first arm 807 and the second arm 808. .. Further, the returned drug 2 adsorbed on the suction nozzle 801 rotates around the axis (Z axis) of the suction nozzle 801 by the rotation of the head 809 with respect to the tip end portion of the second arm 808.

図1、図11、及び図12を参照すると、サポートトレー900は、スカラー型ロボット800のベース806に対して昇降するロッド901の下端に固定されている。本実施形態では、サポートトレー900は後述する格納トレー5と同様の返品薬剤2を保持するための配置溝を備える。図12に示すように、ロッド901の昇降により、サポートトレー900は、吸着ノズル801に吸着保持された返品薬剤2に接近する高さ位置と、吸着ノズル801に吸着保持された返品薬剤2から離隔する高さ位置とに昇降移動する。 Referring to FIGS. 1, 11 and 12, the support tray 900 is fixed to the lower end of a rod 901 that moves up and down with respect to the base 806 of the scalar robot 800. In the present embodiment, the support tray 900 is provided with an arrangement groove for holding the returned medicine 2 similar to the storage tray 5 described later. As shown in FIG. 12, by raising and lowering the rod 901, the support tray 900 is separated from the returned drug 2 sucked and held by the suction nozzle 801 at a height position close to the returned drug 2 sucked and held by the suction nozzle 801. Move up and down to the height position.

吸着ノズル801が返品薬剤2を吸着して移送するとき、スカラー型ロボット800は、第1アーム807、第2アーム808により吸着ノズル801を水平方向に移動させて、サポートトレー900の上方に位置させる。このとき、吸着された返品薬剤2がサポートトレー900の配置溝の向きに一致するように、ヘッド809が回動される。そして、ロッド901を上昇させることで、サポートトレー900が、返品薬剤2から離隔する高さ位置から、返品薬剤2に接近する高さ位置に移動される。これにより、移送中の返品薬剤2が、吸着されている吸着パッド802から外れたとしても、吸着ノズル801の下方に落下することを、サポートトレー900で防止することができる。これにより、吸着外れによる返品薬剤2の損傷を防止しつつ、より高速で返品薬剤2を移送できる。 When the suction nozzle 801 sucks and transfers the returned medicine 2, the scalar type robot 800 horizontally moves the suction nozzle 801 by the first arm 807 and the second arm 808 to position it above the support tray 900. .. At this time, the head 809 is rotated so that the adsorbed returned drug 2 matches the direction of the arrangement groove of the support tray 900. Then, by raising the rod 901, the support tray 900 is moved from a height position separated from the returned drug 2 to a height position approaching the returned drug 2. As a result, even if the returned drug 2 being transferred is disengaged from the suction pad 802 that is being sucked, the support tray 900 can prevent the returned drug 2 from falling below the suction nozzle 801. As a result, the returned drug 2 can be transferred at a higher speed while preventing the returned drug 2 from being damaged due to the adsorption disengagement.

また、サポートトレー900に落下した返品薬剤2は、吸着ノズル801により再び吸着されて、移送されてもよい。 Further, the returned drug 2 that has fallen on the support tray 900 may be adsorbed again by the adsorption nozzle 801 and transferred.

(格納部)
図1から図3に示すように、格納部500は、返品薬剤供給装置1を正面から見て右奥に配置されている。
(Storage part)
As shown in FIGS. 1 to 3, the storage unit 500 is arranged on the far right side when the returned drug supply device 1 is viewed from the front.

図13及び図14を併せて参照すると、格納部500はZ方向に延びる直動ガイド501を備える。この直動ガイド501には、格納トレー5を取り出し可能に保持する保持枠502が昇降自在に保持されている。保持枠502は多段に重ねて配置されている。多段配置された格納トレー5の両側には、Z方向に延びる直動ガイド503,503が配置されている。これらの直動ガイド503,503上を昇降するキャリッジ504,504が設けられている。キャリッジ504には、図13に示す引込位置と図14に示す突出位置とに移動可能なリフト機構505が搭載されている。リフト機構505は図において奥行方向にも配置されている。また、リフト機構505を多段配置してもよい。 Referring to FIGS. 13 and 14, the storage unit 500 includes a linear motion guide 501 extending in the Z direction. A holding frame 502 for holding the storage tray 5 so as to be able to be taken out is held in the linear motion guide 501 so as to be able to move up and down. The holding frames 502 are arranged in multiple stages. Linear guides 503 and 503 extending in the Z direction are arranged on both sides of the storage trays 5 arranged in multiple stages. Carriage 504 and 504 that move up and down on these linear motion guides 503 and 503 are provided. The carriage 504 is equipped with a lift mechanism 505 that can move between the retracted position shown in FIG. 13 and the protruding position shown in FIG. The lift mechanism 505 is also arranged in the depth direction in the figure. Further, the lift mechanism 505 may be arranged in multiple stages.

図13のようにリフト機構505が引込位置にある状態で、1個の保持枠502に対応する位置にキャリッジ504,504が移動する。次に、リフト機構505が図14に示すように突出位置に移動し、保持枠502の下側に進入する、この状態でキャリッジ504,504が上昇すると、リフト機構505が進入した保持枠502とそれよりも上段の保持枠502とが上方に持ち上げられる。その結果、リフト機構505が進入した保持枠502と、それよりも1段下側の保持枠502との間に、間隔Gが形成される。この間隔Gを介してスカラー型ロボット800の吸着ノズル801は、リフト機構505が進入した保持枠502の1段下側の保持枠502に保持された格納トレー5へのアクセスが可能となる。言い換えれば、この間隔Gが設けられることで、スカラー型ロボット800の吸着ノズル801は、すべての格納トレー5に対して、返品薬剤2を格納トレー5に移載する動作(格納動作)と、返品薬剤2を吸着保持して格納トレー5から取り出す動作(払出動作)とが可能である。 With the lift mechanism 505 in the retracted position as shown in FIG. 13, the carriages 504 and 504 move to positions corresponding to one holding frame 502. Next, the lift mechanism 505 moves to the protruding position as shown in FIG. 14 and enters the lower side of the holding frame 502. When the carriages 504 and 504 rise in this state, the holding frame 502 into which the lift mechanism 505 has entered The holding frame 502 on the upper stage is lifted upward. As a result, a gap G is formed between the holding frame 502 into which the lift mechanism 505 has entered and the holding frame 502 one step lower than the holding frame 502. Through this interval G, the suction nozzle 801 of the scalar type robot 800 can access the storage tray 5 held in the holding frame 502 one step lower than the holding frame 502 into which the lift mechanism 505 has entered. In other words, by providing this interval G, the suction nozzle 801 of the scalar type robot 800 transfers the returned drug 2 to the storage tray 5 for all the storage trays 5 (storage operation) and returns. It is possible to perform an operation of adsorbing and holding the drug 2 and taking it out from the storage tray 5 (delivery operation).

格納トレー5は、小型(S)、中型(M)、大型(L)の返品薬剤2の格納に適した3種類のものを少なくとも1個備えている。個々の格納トレー5は、上方が開口したトレー本体5aと、トレー本体5aの上端縁に設けられたフランジ状部5bとを備える。 The storage tray 5 includes at least one of three types suitable for storing the small (S), medium (M), and large (L) returned drug 2. Each storage tray 5 includes a tray body 5a having an open upper portion and a flange-shaped portion 5b provided on the upper end edge of the tray body 5a.

図15を併せて参照すると、トレー本体5aの底部には、返品薬剤供給装置1に奥行方向(Y方向)に延び、返品薬剤供給装置1の幅方向(X方向)に間隔をあけて配置された複数の突条(突部)6が設けられている。隣接する突条6間には、直線状の配置溝(凹部)7が形成されており、この配置溝7に返品薬剤2が収容される。 Referring to FIG. 15, the bottom of the tray main body 5a extends to the returned drug supply device 1 in the depth direction (Y direction) and is arranged at intervals in the width direction (X direction) of the returned drug supply device 1. A plurality of ridges (protrusions) 6 are provided. A linear arrangement groove (recess) 7 is formed between the adjacent ridges 6, and the returned drug 2 is housed in the arrangement groove 7.

(払出部)
払出部600は搬送機構601を備える。搬送機構601は、図1に模式的に示す入口602から払出位置(格納部500の図において手前側の位置)まで払出トレー8を移動させて位置決めし、払出作業完了後の払出トレー8を図1に模式的に示す出口603から搬出する。
(Payout section)
The payout unit 600 includes a transport mechanism 601. The transport mechanism 601 moves and positions the payout tray 8 from the inlet 602 schematically shown in FIG. 1 to the payout position (the position on the front side in the drawing of the storage unit 500), and positions the payout tray 8 after the payout operation is completed. It is carried out from the outlet 603 schematically shown in 1.

本実施形態の返品薬剤供給装置1は、例えば図4(b)に示すように、注射薬払出ライン10に設置される。注射薬払出ライン10には、供給リフター11、ラベルプリンタ12、ボトル払出機13、整列式払出機14、冷所保存機又は特殊薬払出機15、トレー排出ユニット16、積上リフター17等が配置され、本実施形態の返品薬剤供給装置1は、ラベルプリンタ12の横に設置される。返品薬剤供給装置1から搬出された払出トレー8は、注射薬払出ライン10の各機器から払い出される薬剤を受け取り、通常は、排出ユニット18により図示しない搬送カートに供給され、病棟に搬送される。緊急を要する薬剤等、短時間で使用する薬剤を収容した払出トレー8は、排出ユニット16を通過して積上リフター17に供給される。 The returned drug supply device 1 of the present embodiment is installed in the injectable drug payout line 10, for example, as shown in FIG. 4 (b). A supply lifter 11, a label printer 12, a bottle dispenser 13, an aligned dispenser 14, a cold storage machine or a special drug dispenser 15, a tray discharge unit 16, a stacking lifter 17, and the like are arranged in the injection medicine payout line 10. The returned drug supply device 1 of the present embodiment is installed next to the label printer 12. The payout tray 8 carried out from the returned medicine supply device 1 receives the medicines to be paid out from each device of the injectable medicine payout line 10, is usually supplied by the discharge unit 18 to a transport cart (not shown), and is transported to the ward. The payout tray 8 containing the medicines used in a short time such as the medicines requiring urgent need to pass through the discharge unit 16 and is supplied to the stacking lifter 17.

払出トレー8には、図4(a)に示すように、患者名、病棟、病室、実施日等の情報が書き込まれた電子ペーパ8aが装着されている。電子ペーパ8aは、図4(b)に示すラベルプリンタ12の下部に設けられた電子ペーパ消去用アンテナ18aと、トレー排出ユニット16の下部に設けられた電子ペーパ書込み用アンテナ18bを介して電力を供給して図示しない書換装置によって表示内容を書き換えすることが可能である。電子ペーパ消去用アンテナ18aの位置では、これまで使用していたトレーに関する情報が消去され、電子ペーパ書込み用アンテナ18bの位置では、搬送されてきたトレーに関する新しい情報が書き込まれる。電子ペーパ8aの書き換え信号に何らかの原因による故障があった場合、電子ペーパ8aへの書き込み不良を生じることがあるが、従来それを外部から検出する手段がなかった。 As shown in FIG. 4A, the payout tray 8 is equipped with an electronic paper 8a in which information such as a patient name, a ward, a ward, and an implementation date is written. The electronic paper 8a transmits power via the electronic paper erasing antenna 18a provided at the lower part of the label printer 12 shown in FIG. 4B and the electronic paper writing antenna 18b provided at the lower part of the tray discharge unit 16. It is possible to supply and rewrite the displayed contents by a rewriting device (not shown). At the position of the electronic paper erasing antenna 18a, the information about the tray used so far is erased, and at the position of the electronic paper writing antenna 18b, new information about the conveyed tray is written. If there is a failure in the rewrite signal of the electronic paper 8a for some reason, a writing failure to the electronic paper 8a may occur, but conventionally, there has been no means for detecting it from the outside.

そこで、本実施形態では、電子ペーパ8aへの書き込み不良を外部から検出することにより表示のトラブル及びそれに起因するトレー8の誤搬送等を防止することを目的として、次の手段が講じられている。
すなわち、書き換え手順の中で電子ペーパ8aが全黒から全白になるのを利用し、電子ペーパ8aを書き換える動作の際、電子ペーパ8aが黒から白に変化するのを検出する検出手段を設け、該検出手段により電子ペーパ8aが黒から白に変化するのを検出しなければ、書き換えられていないと判定し、その旨を警告する。
Therefore, in the present embodiment, the following measures are taken for the purpose of preventing display troubles and erroneous transport of the tray 8 due to the detection of write defects to the electronic paper 8a from the outside. ..
That is, by utilizing the fact that the electronic paper 8a changes from all black to all white in the rewriting procedure, a detection means for detecting the change of the electronic paper 8a from black to white during the operation of rewriting the electronic paper 8a is provided. If the detection means does not detect that the electronic paper 8a changes from black to white, it is determined that the electronic paper has not been rewritten, and a warning to that effect is given.

具体的には、電子ペーパ8aの液晶画面に対してレーザーを照射し、その反射波から電子ペーパ8aの書き換えの過程(『書換開始』⇒『全黒』⇒『全白』⇒『書換完了』)における液晶画面の全黒から全白の変化を検出できなかった時は、書き換えがなされていないと判断し、ディスプレイ1002に電子ペーパ8aへの書き換え異常の表示を出力する。
この電子ペーパ8aの書換え異常検知センサを設置する目的は、従来のように電力が供給しきれずに書き換えを失敗するといった現象に対処することではなく、配線の断線や液晶割れ等の機械的トラブルにより書き換えができなかった状態を検出することであるので、書き換えができなかったことが検出されて警告が出された後、リトライ等で消去や書換えを実行するというようなことはしない。警告が出されると、新しい故障をしていない電子ペーパ8aに交換される。
Specifically, the liquid crystal screen of the electronic paper 8a is irradiated with a laser, and the process of rewriting the electronic paper 8a from the reflected wave ("rewriting start" ⇒ "all black" ⇒ "all white" ⇒ "rewriting completed" ), When the change from all black to all white of the liquid crystal screen cannot be detected, it is determined that the rewriting has not been performed, and a display of the rewriting abnormality to the electronic paper 8a is output to the display 1002.
The purpose of installing the rewriting abnormality detection sensor of the electronic paper 8a is not to deal with the phenomenon that the rewriting fails because the power cannot be supplied as in the conventional case, but due to mechanical troubles such as wiring disconnection and liquid crystal cracking. Since it is to detect the state where the rewriting could not be performed, it is not necessary to execute erasure or rewriting by retrying after the detection that the rewriting could not be performed and the warning is issued. When a warning is issued, the electronic paper 8a is replaced with a new one that has not failed.

(返品薬剤の格納と払出の動作)
認識部300における認識完了後の返品薬剤2を格納部500に格納する動作(格納運転)と、格納部500から払出部600に払出位置に配置された払出トレー8に払い出す動作(払出運転)とを説明する。格納動作及び払出動作は、制御装置1000によって、主に、認識部300、格納部500、払出部600、スカラー型ロボット800を制御して動作させることで実行される。
(Operation of storing and paying out returned drugs)
The operation of storing the returned drug 2 after the recognition is completed in the recognition unit 300 in the storage unit 500 (storage operation) and the operation of discharging the returned drug 2 from the storage unit 500 to the payout tray 8 arranged at the payout position in the payout unit 600 (payout operation). And explain. The storage operation and the payout operation are mainly executed by controlling and operating the recognition unit 300, the storage unit 500, the payout unit 600, and the scalar type robot 800 by the control device 1000.

まず、格納動作を説明する。 First, the storage operation will be described.

ラベル読取部302の返品薬剤2は、スカラー型ロボット800の吸着ノズル801により吸着保持される。吸着ノズル801により吸着保持された返品薬剤2に対して、少なくともその返品薬剤2の大きさに応じて、格納領域、すなわち格納時に占める範囲との格納位置(どの格納トレー8のどの位置に格納されるか)が設定される。本実施形態では、格納領域のうち格納時に占める範囲はその返品薬剤2の長さL1と幅Wに対応する。格納時に示す領域は、他の返品薬剤2と干渉しないためのマージンを含む。格納部500の複数の格納トレー5のうち、いずれの格納トレー5のいずれの配置溝7に吸着ノズル801により吸着保持されている返品薬剤2を配置可能かが検索される。この検索結果に応じ、返品薬剤2を配置する格納トレー5と配置溝7(返品薬剤2の格納位置)が決定される。1個の格納トレー5に着目すると、図15に示すように「3番」の配置溝7が既に返品薬剤2で埋まっている場合、それ以外の配置溝7が吸着ノズル801により吸着されている返品薬剤2を配置する格納位置の候補となる。例えば、「6番」の溝の場合、2個の返品薬剤2が既に配置されているが、これらの返品薬剤2間の長さが格納しようとしている返品薬剤2について前述した格納時に示す範囲以上であれば、吸着ノズル801により吸着保持されている返品薬剤2を配置する候補となり得る。 The returned drug 2 of the label reading unit 302 is sucked and held by the suction nozzle 801 of the scalar type robot 800. With respect to the returned drug 2 adsorbed and held by the suction nozzle 801, the storage position (which position of which storage tray 8 is stored) with respect to the storage area, that is, the range occupied at the time of storage, at least according to the size of the returned drug 2. Ruka) is set. In the present embodiment, the range occupied by the stored area at the time of storage corresponds to the length L1 and the width W of the returned drug 2. The area shown at the time of storage includes a margin for not interfering with the other returned drug 2. Among the plurality of storage trays 5 of the storage unit 500, it is searched for which of the storage trays 5 the placement groove 7 the returned drug 2 sucked and held by the suction nozzle 801 can be placed. According to this search result, the storage tray 5 in which the returned drug 2 is placed and the placement groove 7 (the storage position of the returned drug 2) are determined. Focusing on one storage tray 5, when the arrangement groove 7 of "No. 3" is already filled with the returned drug 2 as shown in FIG. 15, the other arrangement grooves 7 are adsorbed by the suction nozzle 801. It is a candidate for a storage position where the returned drug 2 is placed. For example, in the case of the groove of "No. 6", two returned drugs 2 are already arranged, but the length between these returned drugs 2 is equal to or larger than the range shown at the time of storage described above for the returned drug 2 to be stored. If so, it may be a candidate for arranging the returned drug 2 that is adsorbed and held by the adsorption nozzle 801.

前述のように、ラベル読取部302での認識終了時には、返品薬剤2はラベル3が上向きとなる姿勢である。スカラー型ロボット800の吸着ノズル801は、ラベル3のバーコードが上向きの姿勢を維持したままで、返品薬剤2を吸着保持して該当する格納トレー5の該当する配置溝7、つまり前述のように決定された格納領域に返品薬剤2を移載する。 As described above, at the end of recognition by the label reading unit 302, the returned drug 2 is in a posture in which the label 3 faces upward. The suction nozzle 801 of the scalar type robot 800 sucks and holds the returned drug 2 while the bar code of the label 3 maintains the upward posture, and the corresponding arrangement groove 7 of the corresponding storage tray 5, that is, as described above. The returned drug 2 is transferred to the determined storage area.

格納部500に格納されている返品薬剤2に関し、制御装置1000は個々の返品薬剤2の識別情報と関連付けて、前述の格納領域、つまりいずれの格納トレー5のいずれの位置(配置溝7とのその配置溝7上での位置)に配置されているかを記憶している。また、制御装置1000は、個々の返品薬剤2の識別情報と関連付けて、種類と使用期限を記憶している。 With respect to the returned drug 2 stored in the storage unit 500, the control device 1000 associates with the identification information of each returned drug 2 and associates it with the above-mentioned storage area, that is, any position (with the arrangement groove 7) of any storage tray 5. It remembers whether or not it is arranged in the arrangement groove 7). Further, the control device 1000 stores the type and the expiration date in association with the identification information of each returned drug 2.

次に、払出作業を説明する。 Next, the payout work will be described.

スカラー型ロボット800の吸着ノズル801は、格納部500の格納トレー5から返品薬剤2を吸着保持し、払出位置に配置された払出トレー8に移載する。 The suction nozzle 801 of the scalar type robot 800 sucks and holds the returned drug 2 from the storage tray 5 of the storage unit 500, and transfers it to the payout tray 8 arranged at the payout position.

払出作業は、例えば電子カルテシステムである上位のシステムから返品薬剤供給装置1が受信した処方データに基づいて実行される。前述のように、格納部500に格納された返品薬剤2の種類及び使用期限と識別情報とが関連付けて記憶され、かつ個々の返品薬剤供給装置1が格納部500のどこに配置されているかも識別情報と関連付けて記憶されている。具体的には、制御装置1000は、格納部500に格納された返品薬剤2の種類、使用期限、及び格納領域と、識別情報とを関連付けて記憶している薬品マスタを備える。しかも、前述のように、多段配置された格納トレー5間に間隔Gを設けることできるので、吸着ノズル801は、多段配置された格納トレー5のいずれに格納された返品薬剤2であっても、必要に応じて自由に吸着保持できる。従って、薬品マスタを参照した結果、処方データに含まれる薬剤が格納部500に格納されている返品薬剤2であることが確認できれば、処方データに応じて制約なく払い出すことができる。また、同一種類の薬剤のうち使用期限が近いものから払い出す等、処方データに応じて効率的な払出が可能である。さらに、薬品マスタを参照した結果、処方データに含まれる薬剤が格納部500に格納されていないことを確認できれば、必要な表示を制御盤1001のディスプレイ1002に表示する等の処理を実行できる。 The payout operation is executed based on the prescription data received by the returned drug supply device 1 from, for example, a higher-level system such as an electronic medical record system. As described above, the type and expiration date of the returned drug 2 stored in the storage unit 500 and the identification information are stored in association with each other, and the location of the returned drug supply device 1 in the storage unit 500 is also identified. It is stored in association with the information. Specifically, the control device 1000 includes a medicine master that stores the type, expiration date, and storage area of the returned medicine 2 stored in the storage unit 500 in association with the identification information. Moreover, as described above, since the space G can be provided between the storage trays 5 arranged in multiple stages, the adsorption nozzle 801 may be the returned drug 2 stored in any of the storage trays 5 arranged in multiple stages. It can be freely adsorbed and held as needed. Therefore, as a result of referring to the drug master, if it can be confirmed that the drug included in the prescription data is the returned drug 2 stored in the storage unit 500, the drug can be paid out without restriction according to the prescription data. In addition, it is possible to efficiently pay out according to prescription data, such as paying out drugs of the same type that are close to the expiration date. Further, as a result of referring to the drug master, if it can be confirmed that the drug included in the prescription data is not stored in the storage unit 500, it is possible to execute a process such as displaying a necessary display on the display 1002 of the control panel 1001.

払出作業の動作を、具体的に説明する。リフト機構505によって形成された間隔Gを通して、スカラー型ロボット800の吸着ノズル801が、払出対象の返品薬剤(以下、払出作業の説明において、払出薬剤と称する)2にアクセスする。このとき、バーコードリーダ812により、当該払出薬剤2のラベルを検知して、制御装置1000は、払出対象の払出薬剤2であるか否かを照合する。払出対象の払出薬剤2であることが確認されると、吸着ノズル801により、当該払出薬剤2が吸着されて、格納トレー5から取り出されて、払出トレー8に移送される。このとき、格納部500に払出対象の払出薬剤2が複数存在している場合には、制御装置1000は、使用期限が最も早い払出薬剤2を払出対象の払出薬剤2として決定し、当該払出薬剤2を払い出すように制御する。 The operation of the payout work will be specifically described. Through the interval G formed by the lift mechanism 505, the suction nozzle 801 of the scalar type robot 800 accesses the returned drug (hereinafter referred to as the payout drug in the description of the payout operation) 2 to be paid out. At this time, the bar code reader 812 detects the label of the payout drug 2, and the control device 1000 verifies whether or not the payout drug 2 is the payout target. When it is confirmed that the payout drug 2 is the payout target, the payout drug 2 is adsorbed by the suction nozzle 801 and is taken out from the storage tray 5 and transferred to the payout tray 8. At this time, when a plurality of payout agents 2 to be dispensed exist in the storage unit 500, the control device 1000 determines the payout agent 2 having the earliest expiration date as the payout agent 2 to be dispensed, and the payout agent 2 is determined. Control to pay out 2.

一方、制御装置1000により、当該払出薬剤2が払出対象の払出薬剤2ではないと判断された場合、または、ラベル3(バーコード)が認識できなかった場合には、制御装置1000は、吸着ノズル801で、当該払出薬剤2を吸着して、認識部300のラベル読取部302に移送するように制御する。ラベル読取部302において、払出薬剤2のラベル3が認識されれば、当該払出薬剤2は、スカラー型ロボット800によって、格納部500に再度格納される。一方、ラベル読取部302において、払出薬剤2のラベル3が認識されなければ、当該払出薬剤2は、直交型ロボット700によって、非格納薬剤配置部400(非格納薬剤配置箱401,402)に移送されることになる。或いは、払い出そうとしている払出薬剤2と合致した場合には、スカラー型ロボット800によって、そのまま払出トレー8に移送してもよい。 On the other hand, if the control device 1000 determines that the payout drug 2 is not the payout drug 2 to be paid out, or if the label 3 (bar code) cannot be recognized, the control device 1000 uses the suction nozzle. At 801 the dispensed agent 2 is adsorbed and controlled to be transferred to the label reading unit 302 of the recognition unit 300. If the label 3 of the payout agent 2 is recognized by the label reading unit 302, the payout agent 2 is stored again in the storage unit 500 by the scalar type robot 800. On the other hand, if the label 3 of the payout drug 2 is not recognized by the label reading unit 302, the payout drug 2 is transferred to the non-stored drug placement unit 400 (non-stored drug placement boxes 401, 402) by the orthogonal robot 700. Will be done. Alternatively, if it matches the payout agent 2 to be paid out, it may be directly transferred to the payout tray 8 by the scalar type robot 800.

以上のように、本実施形態の返品薬剤供給装置1によれば、種類、形状、大きさ、使用期限等の性状が種々異なり、かつ非整列状態で供給された返品薬剤2を、自動的に認識して高い自由度を確保して格納でき、処方データに応じて自由に払い出すことができる。 As described above, according to the returned drug supply device 1 of the present embodiment, the returned drug 2 supplied in a non-aligned state with various properties such as type, shape, size, expiration date, etc. is automatically delivered. It can be recognized and stored with a high degree of freedom, and can be freely paid out according to the prescription data.

(認識処理の詳細)
ここからは、本実施形態の返品薬剤供給装置1における返品薬剤供給装置1の認識部300における仮置き部301及びラベル読取部302ついて、さらに詳細に説明する。
(Details of recognition processing)
From here, the temporary placement unit 301 and the label reading unit 302 in the recognition unit 300 of the return drug supply device 1 in the return drug supply device 1 of the present embodiment will be described in more detail.

図16は、認識部300の模式図である。認識部300は、第1撮影部1003a、第2撮影部1003b、第3撮影部1003c、バーコードリーダ312、制御演算部1004、第1移送部1005a、第2移送部1005b及び表示部1006を備える。 FIG. 16 is a schematic diagram of the recognition unit 300. The recognition unit 300 includes a first imaging unit 1003a, a second imaging unit 1003b, a third imaging unit 1003c, a barcode reader 312, a control calculation unit 1004, a first transfer unit 1005a, a second transfer unit 1005b, and a display unit 1006. ..

第1撮影部1003a、第2撮影部1003b、第3撮影部1003cは、それぞれカメラ304、カメラ307、カメラ311により撮影した画像データを伝送する機能を有する部分を備える。バーコードリーダ312は、返品薬剤のラベルのバーコードから読み取った情報を伝送する機能を有する部分を備える。制御演算部1004は制御装置1000に含まれており、CPU(Central Processing Unit)、RAM(Random Access Memory)、ROM(Read Only Memory)のような記憶装置を含むハードウェアと、それに実装されたソフトウェアにより構築されている。制御演算部1004は、第1制御演算部1004aと、第2制御演算部1004bと、記憶部1004cとを備える。第1移送部1005a、第2移送部1005bは、それぞれ直交型ロボット700、スカラーロボット800を備える。表示部1006は、ディスプレイ1002を備える。 The first photographing unit 1003a, the second photographing unit 1003b, and the third photographing unit 1003c include a portion having a function of transmitting image data photographed by the camera 304, the camera 307, and the camera 311, respectively. The barcode reader 312 includes a portion having a function of transmitting information read from the barcode on the label of the returned drug. The control calculation unit 1004 is included in the control device 1000, and includes hardware including a storage device such as a CPU (Central Processing Unit), a RAM (Random Access Memory), and a ROM (Read Only Memory), and software mounted on the hardware. Is built by. The control calculation unit 1004 includes a first control calculation unit 1004a, a second control calculation unit 1004b, and a storage unit 1004c. The first transfer unit 1005a and the second transfer unit 1005b include an orthogonal robot 700 and a scalar robot 800, respectively. The display unit 1006 includes a display 1002.

第1制御演算部1004aは、2値化処理部1007、認識処理部1008、及び直交型ロボット駆動制御部1009を備える。
2値化処理部1007は、第1撮影部1003aのカメラ304で撮影された画像データを受け取り、これを2値化処理することで2値化画像を生成する。
認識処理部1008は、2値化画像に基づいて返品薬剤2の位置、向き、略中間位置を検出する。
直交型ロボット駆動制御部1009は、認識処理部1008で検出した返品薬剤2の位置等の情報に基づいて、第1移送部1005aの直交型ロボット700を駆動して返品薬剤2を仮置き部301の半透明板305(図9参照)上に移送する制御を行う。
The first control calculation unit 1004a includes a binarization processing unit 1007, a recognition processing unit 1008, and an orthogonal robot drive control unit 1009.
The binarization processing unit 1007 receives the image data captured by the camera 304 of the first photographing unit 1003a, and generates a binarized image by binarizing the image data.
The recognition processing unit 1008 detects the position, orientation, and substantially intermediate position of the returned drug 2 based on the binarized image.
The orthogonal robot drive control unit 1009 drives the orthogonal robot 700 of the first transfer unit 1005a based on the information such as the position of the returned agent 2 detected by the recognition processing unit 1008 to temporarily place the returned agent 2 in the return agent 2 301. Controls the transfer onto the translucent plate 305 (see FIG. 9).

第2制御演算部1004bは、画像処理部1010、異常判定部1011、解析部1012、スカラー型ロボット駆動制御部1013を備える。
画像処理部1010は、第2撮影部1003bで撮影された画像についてエッジ検出処理と2値化処理を行い、返品薬剤2の形状と大きさの情報を取得する。
異常判定部1011は、仮置き部301に載置された返品薬剤2の形状、大きさ、種類、及び使用期限(性状)が認識できない異常な状態を判定し、エラー画像を作成する。異常な状態とは、後述するように、複数薬剤、ゴミ等の異物・汚れ、立ち薬剤、解析範囲外にある範囲外薬剤であり、異常判定部ではこれらの異常を判定し、撮影画像に異常部分を示す識別マークを重ね合わせたエラー画像を作成する。
解析部1012においては、返品薬剤2の形状、大きさ、種類、及び使用期限(性状)が認識される。具体的には、認識部300の仮置き部301において返品薬剤2の形状及び大きさが認識され、ラベル読取部302において返品薬剤2の種類が認識される。そして、その性状の認識結果に基づいて、返品薬剤2が、返品薬剤供給装置1の取り扱い対象の薬剤であるか否かが制御装置1000(判定処理部)によって判定される。
The second control calculation unit 1004b includes an image processing unit 1010, an abnormality determination unit 1011, an analysis unit 1012, and a scalar type robot drive control unit 1013.
The image processing unit 1010 performs edge detection processing and binarization processing on the image captured by the second imaging unit 1003b, and acquires information on the shape and size of the returned drug 2.
The abnormality determination unit 1011 determines an abnormal state in which the shape, size, type, and expiration date (property) of the returned drug 2 placed on the temporary storage unit 301 cannot be recognized, and creates an error image. As will be described later, the abnormal state is a plurality of drugs, foreign substances / dirt such as dust, standing drugs, and drugs outside the range of analysis, and the abnormality determination unit determines these abnormalities and makes an abnormality in the captured image. Create an error image with the identification mark indicating the part superimposed.
The analysis unit 1012 recognizes the shape, size, type, and expiration date (property) of the returned drug 2. Specifically, the temporary placement unit 301 of the recognition unit 300 recognizes the shape and size of the returned drug 2, and the label reading unit 302 recognizes the type of the returned drug 2. Then, based on the recognition result of the property, the control device 1000 (determination processing unit) determines whether or not the returned drug 2 is a drug to be handled by the returned drug supply device 1.

なお、ここで言う「取り扱い対象」の薬剤は、少なくとも、返品薬剤供給装置1の構造上取り扱い可能な形状及び大きさを備え、返品薬剤供給装置1において取り扱うことがユーザによって予め決定された種類である薬剤を言う。
スカラー型ロボット駆動制御部1013は、解析部1012で検出した返品薬剤2の位置等の情報に基づいて、第2移送部1005bのスカラーロボット800を駆動して返品薬剤2をラベル読取部302に移送する制御と、ラベル読取部302から格納部500に移送する制御を行う。
It should be noted that the "handled" drug referred to here has at least a shape and size that can be handled due to the structure of the returned drug supply device 1, and is of a type previously determined by the user to be handled by the returned drug supply device 1. Say a drug.
The scalar type robot drive control unit 1013 drives the scalar robot 800 of the second transfer unit 1005b to transfer the returned agent 2 to the label reading unit 302 based on the information such as the position of the returned agent 2 detected by the analysis unit 1012. Control and transfer from the label reading unit 302 to the storage unit 500 are performed.

記憶部1004cは、認識処理部1008で検出した返品薬剤の位置、向き、略中間位置、及び解析部1012で解析した返品薬剤の形状、大きさ、種類、及び使用期限(性状)を記憶する。また、記憶部1004cは、後述するように、複数薬剤、異物・汚れ、立ち薬剤、範囲外薬剤等のエラーに対応するエラーコード番号と、エラー内容、指示内容、当該エラーに対処すべき対処方法が予め記憶されている。 The storage unit 1004c stores the position, orientation, substantially intermediate position of the returned drug detected by the recognition processing unit 1008, and the shape, size, type, and expiration date (property) of the returned drug analyzed by the analysis unit 1012. Further, as will be described later, the storage unit 1004c has an error code number corresponding to an error of a plurality of drugs, a foreign substance / dirt, a standing drug, an out-of-range drug, etc., an error content, an instruction content, and a coping method for dealing with the error. Is stored in advance.

表示部1006は、ディスプレイ1002を備え、ホーム画面やエラー画面等を表示する。 The display unit 1006 includes a display 1002 and displays a home screen, an error screen, and the like.

(薬剤の形状及び大きさの認識)
前述したように、認識部300の仮置き部301において、返品薬剤2の形状及び大きさが認識される(形状及び大きさの情報が取得される)。そのために、返品薬剤2は、図1及び図9に示すように、半透明板305の載置面305a(カメラ307側の平面)上に、その長手軸Aが載置面305aに対して平行になるように載置される。そして、半透明板305上に載置された返品薬剤2は、半透明板305の下方に配置された照明306によって光が下方から照射された状態で、半透明板305の上方に配置されたカメラ307によって撮影される。
(Recognition of drug shape and size)
As described above, the temporary placement unit 301 of the recognition unit 300 recognizes the shape and size of the returned drug 2 (information on the shape and size is acquired). Therefore, as shown in FIGS. 1 and 9, the returned drug 2 has its longitudinal axis A parallel to the mounting surface 305a on the mounting surface 305a (plane on the camera 307 side) of the translucent plate 305. It is placed so that it becomes. Then, the returned medicine 2 placed on the translucent plate 305 was arranged above the translucent plate 305 in a state of being illuminated from below by the illumination 306 arranged below the translucent plate 305. Taken by camera 307.

制御装置1000は、カメラ307によって撮影された画像に基づいて、返品薬剤2の形状及び大きさの情報を取得するように構成されている。すなわち、制御装置1000は、返品薬剤2の形状及び大きさを認識するための認識部300の一部として機能する。 The control device 1000 is configured to acquire information on the shape and size of the returned drug 2 based on the image taken by the camera 307. That is, the control device 1000 functions as a part of the recognition unit 300 for recognizing the shape and size of the returned drug 2.

制御装置1000はまた、返品薬剤2の形状及び大きさの情報を取得するために、返品薬剤2が写るカメラ307の画像を画像処理するように構成されている(画像処理部を有する)。カメラ307の画像に対する画像処理として、例えば、その画像に写る返品薬剤2の像のエッジを検出するためのエッジ検出処理と、画像を2値化(白黒化)する2値化処理とが行われる。エッジ検出処理された画像と2値化処理された画像とに基づいて、制御装置1000は、返品薬剤2の形状と大きさの情報を取得する。 The control device 1000 is also configured to image-process the image of the camera 307 in which the returned drug 2 is captured (having an image processing unit) in order to acquire information on the shape and size of the returned drug 2. As image processing for the image of the camera 307, for example, an edge detection process for detecting the edge of the image of the returned drug 2 appearing in the image and a binarization process for binarizing (black and white) the image are performed. .. Based on the edge detection processed image and the binarized image, the control device 1000 acquires information on the shape and size of the returned drug 2.

また、制御装置1000は、取得した返品薬剤2の形状に基づいて、その返品薬剤2の形状が返品薬剤供給装置1において取り扱い対象の薬剤の形状であるかを判定するように構成されている。 Further, the control device 1000 is configured to determine whether the shape of the returned drug 2 is the shape of the drug to be handled by the returned drug supply device 1 based on the shape of the acquired returned drug 2.

返品トレー4を介して返却される返品薬剤2に、例えば、ラベル読取部302における無端ベルト308とローラ309との間に噛み込む形状の薬剤、スカラー型ロボット800が保持できない形状の薬剤、格納部500に格納できない形状の薬剤、すなわち返品薬剤供給装置1がその構造を原因として取り扱うことができない形状の薬剤が含まれる場合がある。一例として、袋体や箱体に収納された状態の薬剤、部分的に欠損している薬剤、ラベルが部分的に剥離している薬剤、部分的に剥離したラベルが他の薬剤に貼り付いた薬剤などが挙げられる。このような返品薬剤は、返品薬剤供給装置1ではその構造上取り扱うことができないので、取り扱い対象外の薬剤(非格納薬剤)として処理される。 The returned medicine 2 returned via the return tray 4 includes, for example, a medicine having a shape that is caught between the endless belt 308 and the roller 309 in the label reading unit 302, a medicine having a shape that cannot be held by the scalar type robot 800, and a storage unit. A drug having a shape that cannot be stored in the 500, that is, a drug having a shape that cannot be handled by the returned drug supply device 1 due to its structure may be included. As an example, a drug stored in a bag or box, a drug that is partially missing, a drug whose label is partially peeled off, or a drug whose label is partially peeled off is attached to another drug. Drugs and the like can be mentioned. Since such a returned drug cannot be handled by the returned drug supply device 1 due to its structure, it is treated as a drug (non-stored drug) that is not subject to handling.

カメラ307の画像(画像処理済みの画像)に基づいて返品薬剤2の形状を判定する方法の一例について説明する。 An example of a method of determining the shape of the returned drug 2 based on the image (image processed image) of the camera 307 will be described.

図17A及び図17Bは、2値化処理された画像を示している。図17Aは、返品薬剤供給装置1の取り扱い対象の薬剤の形状であるアンプル形状の返品薬剤2の像(黒塗り像)Imが写る2値化処理済みの画像Picを示している。図17Bは、取り扱い対象外の薬剤の形状である、すなわちラベル3が部分的に剥離した状態のアンプル形状の返品薬剤2の像(黒塗り像)Im’が写る2値化処理済みの画像Pic’を示している。 17A and 17B show binarized images. FIG. 17A shows a binarized image Pic in which an ampoule-shaped image of the returned drug 2 (black-painted image) Im, which is the shape of the drug to be handled by the returned drug supply device 1, is captured. FIG. 17B is a binarized image Pic showing an image (black-painted image) Im'of the returned drug 2 in the shape of an ampoule in which the label 3 is partially peeled off, which is the shape of the drug not to be handled. 'Indicates.

まず、制御装置1000は、カメラ307の画像Pic(Pic’)内において、黒塗り像Im(Im’)に外接する矩形領域Sr(Sr’)を抽出する。次に、矩形領域Sr(Sr’)の長手方向(長辺Sa(Sa’)が延在する方向)に延在する矩形領域Sr(Sr’)の中心線CL(CL’)を算出する。そして、黒塗り像Im(Im’)が、中心線CL(CL’)を基準にして対称の形状であるか否かを制御装置1000は判定する。 First, the control device 1000 extracts a rectangular region Sr (Sr') circumscribing the black-painted image Im (Im') in the image Pic (Pic') of the camera 307. Next, the center line CL (CL') of the rectangular region Sr (Sr') extending in the longitudinal direction of the rectangular region Sr (Sr') (the direction in which the long side Sa (Sa') extends) is calculated. Then, the control device 1000 determines whether or not the black-painted image Im (Im') has a symmetrical shape with respect to the center line CL (CL').

図17Aの画像Picの場合、黒塗り像Imが中心線CLに対して対称の形状であるため、制御装置1000は、画像Picに写る返品薬剤2の形状を取り扱い対象の薬剤の形状であると判定する。一方、図17Bの画像Pic’の場合、黒塗り像Im’が中心線CL’に対して非対称の形状であるため、制御装置1000は、画像Pic’に写る返品薬剤2の形状を取り扱い対象外の薬剤の形状であると判定する。 In the case of the image Pic of FIG. 17A, since the black-painted image Im has a shape symmetrical with respect to the center line CL, the control device 1000 determines that the shape of the returned drug 2 reflected in the image Pic is the shape of the drug to be handled. judge. On the other hand, in the case of the image Pic'of FIG. 17B, since the black-painted image Im'has an asymmetrical shape with respect to the center line CL', the control device 1000 does not handle the shape of the returned drug 2 reflected in the image Pic'. It is determined that the shape of the drug is.

仮置き部301の半透明板305に載置された返品薬剤2が取り扱い対象の薬剤の形状であることが判定された後、制御装置1000は、返品薬剤2の大きさが取り扱い対象の薬剤の大きさ(サイズ)であるか否かを判定する。そのために、その返品薬剤2の大きさが測定(算出)される。 After it is determined that the returned drug 2 placed on the translucent plate 305 of the temporary storage portion 301 is in the shape of the drug to be handled, the control device 1000 determines that the size of the returned drug 2 is the size of the drug to be handled. It is determined whether or not it is a size (size). Therefore, the size of the returned drug 2 is measured (calculated).

本実施形態の場合、返品薬剤2の大きさ(サイズ)の情報を取得するために、まず、返品薬剤2の長手方向(軸線Aの延在方向)の長さが測定(算出)される。その返品薬剤2の長手方向の長さの測定(算出)方法について説明する。 In the case of the present embodiment, in order to acquire information on the size of the returned drug 2, the length of the returned drug 2 in the longitudinal direction (extending direction of the axis A) is first measured (calculated). A method of measuring (calculating) the length of the returned drug 2 in the longitudinal direction will be described.

図18及び図19は、返品薬剤2の大きさの測定(算出)方法を説明するための図である。 18 and 19 are diagrams for explaining a method of measuring (calculating) the size of the returned drug 2.

図18に示すように半透明板305上に載置された返品薬剤2(バイアル2B)がその上方のカメラ307によって撮影されると、図19に示すようにカメラ307の画像Picに返品薬剤2が写る。この画像Picに写る返品薬剤2の像の長手方向長さLmと幅方向長さW1、W2とに基づいて、三角形の相似を利用して、返品薬剤2の大きさとして、その長手方向(軸線Aの延在方向)の実際の長さLactが算出される。カメラ307の画像Picに基づく、返品薬剤2の長手方向の実際の長さLactの算出方法については、国際公開WO2015/170762公報に詳述されている。 When the returned drug 2 (vial 2B) placed on the translucent plate 305 as shown in FIG. 18 is photographed by the camera 307 above it, the returned drug 2 is transferred to the image Pic of the camera 307 as shown in FIG. Is reflected. Based on the longitudinal length Lm and the widthwise lengths W1 and W2 of the image of the returned drug 2 shown in this image Pic, the size of the returned drug 2 is set to the longitudinal direction (axis line) by utilizing the similarity of the triangle. The actual length Lact (in the extending direction of A) is calculated. A method for calculating the actual length Lact of the returned drug 2 in the longitudinal direction based on the image Pic of the camera 307 is described in detail in WO 2015/170762.

このように返品薬剤2の実際の長手方向(軸線Aの延在方向)の長さを算出することができると、その前に取得した返品薬剤2の形状の情報に基づいて、返品薬剤2の他の部分の実際のサイズも算出可能である。例えば、返品薬剤2がバイアル2Bの場合、胴部2cの実際の外径を算出することができる。 When the actual length of the returned drug 2 in the longitudinal direction (extending direction of the axis A) can be calculated in this way, the returned drug 2 is based on the information on the shape of the returned drug 2 obtained before that. The actual size of other parts can also be calculated. For example, if the returned drug 2 is a vial 2B, the actual outer diameter of the body 2c can be calculated.

さらに、返品薬剤2の長手方向の実際の長さLactを測定(算出)するにあたって、カメラ307の光軸OA1と返品薬剤2とが交差するように、返品薬剤2は半透明板305の載置面305a上に位置決めされるのが好ましい。特に、カメラ307の光軸OA1と返品薬剤2の軸線Aとが直交するように、返品薬剤2は半透明板305に対して位置決めされるのが好ましい。 Further, in measuring (calculating) the actual length Lact in the longitudinal direction of the returned drug 2, the returned drug 2 is placed on the translucent plate 305 so that the optical axis OA1 of the camera 307 and the returned drug 2 intersect. It is preferably positioned on the surface 305a. In particular, it is preferable that the returned drug 2 is positioned with respect to the translucent plate 305 so that the optical axis OA1 of the camera 307 and the axis A of the returned drug 2 are orthogonal to each other.

例えば、図20は、返品薬剤2を位置決めするための位置決め部として凹凸部が形成されている半透明板(薬剤載置板)305の斜視図である。 For example, FIG. 20 is a perspective view of a translucent plate (drug mounting plate) 305 in which an uneven portion is formed as a positioning portion for positioning the returned drug 2.

本実施形態の場合、半透明板305は、半透明のベースプレート305Aと、そのベースプレート305A上に載置され、返品薬剤2が載置される載置面305aを備える透明の位置決めプレート305Bとから構成されている。ベースプレート305Aは、位置決めプレート305Bの周囲から上方へ突出して、返品薬剤2の載置面305aからの脱落を防止する、枠体305cを備えている。 In the case of the present embodiment, the translucent plate 305 is composed of a translucent base plate 305A and a transparent positioning plate 305B mounted on the base plate 305A and provided with a mounting surface 305a on which the returned drug 2 is placed. Has been done. The base plate 305A includes a frame body 305c that projects upward from the periphery of the positioning plate 305B and prevents the returned drug 2 from falling off from the mounting surface 305a.

位置決めプレート305Bは、ベースプレート305Aに着脱可能に取り付けられる。位置決めプレート305Bはまた、カメラ307の光軸OA1と載置面305a上に載置された返品薬剤2の軸線Aとが直交するように、返品薬剤2を半透明板305に対して位置決めするための一対の直線状の突条部305bを備える。一対の直線状の突条部305bは、矩形の位置決めプレート305Bの対角線方向に、間隔をあけて平行に延在し、カメラ307側に向かって載置面305aから突出している。一対の突条部305bの間に返品薬剤2が配置されると、その胴部2cの外周面に一対の突条部305bが当接する。それにより、返品薬剤2は、その軸線Aがカメラ307の光軸OA1に直交した状態で、半透明板305の載置面305aに対して位置決めされる。一対の突条部305bを位置決めプレート305Bの対角線方向に設けることで、同一形状の位置決めプレート305Bの1辺に平行に設けるよりも一対の突条部305bが長くなるので、一対の突条部305bの間への返品薬剤2の載置範囲を大きくして、返品薬剤2を確実に載置することができる。 The positioning plate 305B is detachably attached to the base plate 305A. The positioning plate 305B also positions the returned drug 2 with respect to the translucent plate 305 so that the optical axis OA1 of the camera 307 and the axis A of the returned drug 2 mounted on the mounting surface 305a are orthogonal to each other. It is provided with a pair of linear ridges 305b. The pair of linear ridges 305b extend in parallel at intervals in the diagonal direction of the rectangular positioning plate 305B, and project from the mounting surface 305a toward the camera 307 side. When the returned drug 2 is arranged between the pair of ridges 305b, the pair of ridges 305b abut on the outer peripheral surface of the body 2c. As a result, the returned medicine 2 is positioned with respect to the mounting surface 305a of the translucent plate 305 with its axis A orthogonal to the optical axis OA1 of the camera 307. By providing the pair of ridges 305b in the diagonal direction of the positioning plate 305B, the pair of ridges 305b is longer than the pair of ridges 305b provided in parallel with one side of the positioning plate 305B having the same shape. The range of the returned drug 2 placed in the space can be increased so that the returned drug 2 can be reliably placed.

ベースプレート305Aの枠体305cのうち、装置の奥に位置する枠体305cには、載置面305a上の埃、髪の毛等の異物を除去するための複数のエアー吹き出し孔305dが設けられている。エアー吹き出し孔305dは、図示しないコンプレッサー等の送風源に接続され、装置の動作開始後に載置面305aに対して斜め上方から図中矢印で示すようにエアーを吹き出すことで、載置面305a上の異物を吹き飛ばすように構成されている。なお、エアー吹き出し孔305dは、奥の枠体305cに限らず、手前又は左右の枠体305cに設けてもよい。 Of the frame 305c of the base plate 305A, the frame 305c located at the back of the device is provided with a plurality of air blowing holes 305d for removing foreign substances such as dust and hair on the mounting surface 305a. The air blowing hole 305d is connected to a blower source such as a compressor (not shown), and after the device starts operating, air is blown from diagonally above the mounting surface 305a as shown by an arrow in the figure, thereby blowing air onto the mounting surface 305a. It is configured to blow off foreign matter. The air blowing hole 305d is not limited to the back frame 305c, but may be provided in the front or left and right frame 305c.

また、位置決めプレート305B(載置面305a)には、カメラ307の画像に基づいて返品薬剤2の位置、向き、形状及び大きさを解析する解析範囲ARが設定されている。解析範囲ARは、載置面305aのうち、枠体305cから中央側に所定間隔離れた位置に設定されている。すなわち、返品薬剤2は、載置面305aに載置され且つ突条部305bによって位置決めされた状態では、全体が解析範囲AR内に通常は位置する。しかしながら、返品薬剤2は、返却トレー4から仮置き部301への移送時に、突条部305bの延在方向に対して軸線が傾斜するように配置される場合がある。これは、例えば、返却トレー4内における返品薬剤2のピッキング位置又は軸線方向の検出ミスが生じた場合に発生する。この場合、仮置き部301の平面図を示す図21を参照して、返品薬剤2は、突条部305bで位置決めされることはなく、突条部305bから周囲の枠体305cまで転がり落ちて、解析範囲AR内からはみ出して、全体が解析範囲AR内に位置しなくなる。この結果、制御装置1000は、返品薬剤2の形状及び大きさを正しく解析できない。 Further, the positioning plate 305B (mounting surface 305a) is set with an analysis range AR for analyzing the position, orientation, shape and size of the returned drug 2 based on the image of the camera 307. The analysis range AR is set at a position on the mounting surface 305a at a predetermined distance from the frame body 305c on the center side. That is, the returned drug 2 is normally located within the analysis range AR as a whole when it is placed on the mounting surface 305a and positioned by the ridge portion 305b. However, the returned drug 2 may be arranged so that the axis line is inclined with respect to the extending direction of the ridge portion 305b when the returned medicine 2 is transferred from the return tray 4 to the temporary storage portion 301. This occurs, for example, when a detection error occurs in the picking position or the axial direction of the returned drug 2 in the return tray 4. In this case, referring to FIG. 21 showing a plan view of the temporary placement portion 301, the returned drug 2 is not positioned by the ridge portion 305b and rolls down from the ridge portion 305b to the surrounding frame 305c. , It goes out of the analysis range AR, and the whole is not located in the analysis range AR. As a result, the control device 1000 cannot correctly analyze the shape and size of the returned drug 2.

この対応として、図21に示すように、半透明板305は、解析範囲ARの内側に、載置面305aから突出するガード部305eを備えている。ガード部305eは、矩形の解析範囲ARの4つ辺に沿って設けられ、返品薬剤2が外側に向かって転がっても解析範囲ARからはみ出すのを防止する。ガード部305eは、図22に示すように、最大径の返品薬剤2がガード部305eに当接しても解析範囲AR内撮影が可能なように、解析範囲ARから内側への寸法が定められている。 As a response to this, as shown in FIG. 21, the translucent plate 305 is provided with a guard portion 305e protruding from the mounting surface 305a inside the analysis range AR. The guard portion 305e is provided along the four sides of the rectangular analysis range AR, and prevents the returned drug 2 from protruding from the analysis range AR even if it rolls outward. As shown in FIG. 22, the guard portion 305e is dimensioned inward from the analysis range AR so that photography within the analysis range AR is possible even if the returned drug 2 having the maximum diameter abuts on the guard portion 305e. There is.

なお、半透明板305(すなわちカメラ307の光軸OA1)に対して返品薬剤2を位置決めできるのであれば、半透明板305に形成される位置決め部は、図20に示す一対の直線状の突条部305bに限らない。例えば、返品薬剤2を位置決めするための凹凸部は、溝であってもよい。 If the returned drug 2 can be positioned with respect to the translucent plate 305 (that is, the optical axis OA1 of the camera 307), the positioning portion formed on the translucent plate 305 is a pair of linear protrusions shown in FIG. Not limited to section 305b. For example, the uneven portion for positioning the returned drug 2 may be a groove.

また、半透明板305を、ベースプレート305Aと位置決めプレート305Bとから構成するのではなく、一枚の半透明なプレートによって構成してもよい。その場合、一枚のプレート上に、返品薬剤2を位置決めするための凹凸部が形成される。ただし、半透明板305をベースプレート305Aと位置決めプレート305Bとから構成する場合、返品薬剤2を位置決めするための凹凸部の形状が異なる複数の位置決めプレートを用意することにより、返品薬剤供給装置1は、より多様な形状及び大きさの薬剤を取り扱うことができる。 Further, the translucent plate 305 may be composed of one translucent plate instead of the base plate 305A and the positioning plate 305B. In that case, an uneven portion for positioning the returned drug 2 is formed on one plate. However, when the translucent plate 305 is composed of the base plate 305A and the positioning plate 305B, the returned drug supply device 1 can be configured by preparing a plurality of positioning plates having different shapes of the uneven portions for positioning the returned drug 2. It can handle more diverse shapes and sizes of drugs.

認識部300の仮置き部301にて形状及び大きさが認識された返品薬剤2は、その形状及び大きさが取り扱い対象の薬剤の形状及び大きさであると制御装置1000によって判定された場合、図9に示すように仮置き部301に対して隣接するラベル読取部302に直交型ロボット700によって搬送される。 When the control device 1000 determines that the shape and size of the returned drug 2 whose shape and size are recognized by the temporary placement unit 301 of the recognition unit 300 are the shape and size of the drug to be handled. As shown in FIG. 9, it is conveyed by the orthogonal robot 700 to the label reading unit 302 adjacent to the temporary placement unit 301.

一方、形状が取り扱い対象外の薬剤の形状であると判定された返品薬剤2または形状が取り扱い対象の薬剤の形状であっても大きさが取り扱い対象外の薬剤の大きさであると判定された返品薬剤2は、非格納薬剤2’として、非格納薬剤配置部400の非格納薬剤配置箱401、402または非格納薬剤用の返品トレー4に移載される。 On the other hand, even if the shape of the returned drug 2 is determined to be the shape of the drug not to be handled or the shape is the shape of the drug to be handled, the size is determined to be the size of the drug not to be handled. The returned drug 2 is transferred as the non-stored drug 2'to the non-stored drug placement box 401, 402 of the non-stored drug placement unit 400 or the return tray 4 for the non-stored drug.

(吸着位置の決定)
次に、図23〜図25を参照して、仮置き部301のカメラ307によって撮影された画像に基づいて(すなわち前述したように取得された返品薬剤2の形状及び大きさの情報に基づいて)、返品薬剤2の吸着位置(直交型ロボット700の吸着ノズル701とスカラー型ロボット800の吸着ノズル801で吸着される位置)を算出する方法を説明する。
(Determining the adsorption position)
Next, with reference to FIGS. 23 to 25, based on the image taken by the camera 307 of the temporary placement unit 301 (that is, based on the shape and size information of the returned drug 2 acquired as described above). ), The method of calculating the suction position of the returned drug 2 (the position of being sucked by the suction nozzle 701 of the orthogonal robot 700 and the suction nozzle 801 of the scalar type robot 800) will be described.

図23を参照すると、バイアル2Bは、胴部2cからの頭部2dの突出量が比較的少なく、胴部2cと頭部2dの径の差も小さいので、長さ(全長L1)の概ね中間位置を吸着位置SPに設定すれば、吸着ノズル701,801で吸着した際に重量バランスは良好である。つまり、バイアル2Bの場合、全長L1の概ね中間位置を吸着位置SPに設定すれば、吸着ノズル701,801による保持が安定する。 Referring to FIG. 23, the vial 2B has a relatively small amount of protrusion of the head 2d from the body 2c, and the difference in diameter between the body 2c and the head 2d is also small, so that the vial 2B is approximately intermediate in length (total length L1). If the position is set to the suction position SP, the weight balance is good when sucked by the suction nozzles 701 and 801. That is, in the case of the vial 2B, if the substantially intermediate position of the total length L1 is set to the suction position SP, the holding by the suction nozzles 701 and 801 is stable.

引き続き図23を参照すると、アンプル2Aは、胴部2cから頭部2dの突出量が比較的大きく、胴部2cと頭部2dの径の差も大きいので、全長L1の概ね中間位置を吸着位置SPに設定すると、吸着ノズル701,801で吸着した際に重量バランスが良好でない。アンプル2Aの場合、全長L1ではなく、胴部2cの長さL2の概ね中間位置を吸着位置SPに設定すれば、吸着ノズル701,801で吸着した際に重量バランスは良好である。つまり、アンプル2Aの場合、胴部2cの長さL2の概ね中間位置を吸着位置SPに設定すれば、吸着ノズル701,801による保持が安定する。この点は、樹脂アンプル2Cの場合も同様である。 Continuing to refer to FIG. 23, in the ampoule 2A, the amount of protrusion of the head 2d from the body 2c is relatively large, and the difference in diameter between the body 2c and the head 2d is also large. When set to SP, the weight balance is not good when sucked by the suction nozzles 701 and 801. In the case of the ampoule 2A, if the substantially intermediate position of the length L2 of the body portion 2c is set to the suction position SP instead of the total length L1, the weight balance is good when the suction nozzles 701 and 801 are sucked. That is, in the case of the ampoule 2A, if the substantially intermediate position of the length L2 of the body portion 2c is set to the suction position SP, the holding by the suction nozzles 701 and 801 is stable. This point is the same in the case of the resin ampoule 2C.

以上の理由から、仮置き部301のカメラ307によって撮影された画像に基づいて、以下の手順により返品薬剤2の吸着位置SPが算出される。 For the above reason, the adsorption position SP of the returned drug 2 is calculated by the following procedure based on the image taken by the camera 307 of the temporary placement unit 301.

まず、カメラ307で撮影された画像(返品薬剤2の平面視での画像)の外形輪郭に対する包絡線(または外接矩形)313が設定される(図24及び図25のステップ1)。また、この包絡線313から凸面度が算出される(図24及び図25のステップ1)。凸面度は包絡線313が直線で返品薬剤2を囲むことができる程、値が1に近づく。すなわち、凸面度の値(最大値は1)が大きい程、胴部2cと頭部2dの径の差が少なく、胴部2cと頭部2dをつなぐ首部の胴部2c及び頭部2dに対する径の差も小さいことを意味する。 First, an envelope (or an circumscribing rectangle) 313 with respect to the outer contour of the image taken by the camera 307 (the image of the returned drug 2 in a plan view) is set (step 1 in FIGS. 24 and 25). Further, the convexity is calculated from the envelope 313 (step 1 in FIGS. 24 and 25). The degree of convexity approaches 1 so that the envelope 313 can surround the returned drug 2 with a straight line. That is, the larger the convexity value (maximum value is 1), the smaller the difference in diameter between the body 2c and the head 2d, and the diameter of the neck connecting the body 2c and the head 2d with respect to the body 2c and the head 2d. It also means that the difference between them is small.

算出された凸面度の値が、予め設定された閾値(例えば0.8〜0.9の範囲で設定できる)以上であるならば、カメラ307で撮影した返品薬剤2は、バイアル2Bと推定できる形状を有すると判断できるので、全長L1の中間、かつ幅Wの中間を吸着位置SPに設定する(図24のステップ2)。 If the calculated convexity value is equal to or greater than a preset threshold value (for example, it can be set in the range of 0.8 to 0.9), the returned drug 2 taken by the camera 307 can be estimated to be the vial 2B. Since it can be determined that the shape has a shape, the middle of the total length L1 and the middle of the width W are set as the suction position SP (step 2 in FIG. 24).

算出された凸面度の値が、前述の予め設定された閾値未満であれば、カメラ307で撮影した返品薬剤2は、アンプル2A(あるいは樹脂アンプル2C)と推定できる形状を有すると判断できるので、胴部2cの長さL2の中間を吸着位置SPに設定するために、以下の処理を行う。 If the calculated convexity value is less than the above-mentioned preset threshold value, it can be determined that the returned drug 2 photographed by the camera 307 has a shape that can be estimated to be ampoule 2A (or resin ampoule 2C). In order to set the middle of the length L2 of the body portion 2c at the suction position SP, the following processing is performed.

まず、包絡線(または外接矩形)313と返品薬剤2の画像の外形輪郭との比較により、胴部2cと頭部2dとの間の首部(部分的に縮径している部分)に相当する、括れ部分314を抽出する(図25のステップ2)。
次に、抽出された括れ部分314を直線で囲む矩形領域315を作成する(図25のステップ3)。
First, by comparing the envelope line (or circumscribing rectangle) 313 with the outer contour of the image of the returned drug 2, it corresponds to the neck portion (partially reduced diameter portion) between the body portion 2c and the head portion 2d. , The constricted portion 314 is extracted (step 2 in FIG. 25).
Next, a rectangular region 315 surrounding the extracted constricted portion 314 with a straight line is created (step 3 in FIG. 25).

その後、返品薬剤2の画像の外形輪郭から矩形領域315を除去することで、2つの領域316a,316bを作成する(図25のステップ4)。これらの領域316a,316bは、返品薬剤2の画像の外形輪郭の括れ部分314以外の領域に相当する。また、これらの領域316a,316bの一方が返品薬剤2の胴部2cに相当し、他方が頭部2dに相当する。領域316a,316bの面積を比較し、面積が大きい方(胴部2cに相当)を処理対象として残し、面積が小さい方(頭部2dに相当)を処理対象から除外する。この例では、領域316aの面積が領域316bの面積よりも大きいので、領域316aを処理対象として残す。 Then, by removing the rectangular region 315 from the outer contour of the image of the returned drug 2, two regions 316a and 316b are created (step 4 in FIG. 25). These regions 316a and 316b correspond to regions other than the constricted portion 314 of the outer contour of the image of the returned drug 2. Further, one of these regions 316a and 316b corresponds to the body portion 2c of the returned drug 2, and the other corresponds to the head portion 2d. The areas of the regions 316a and 316b are compared, the larger area (corresponding to the body 2c) is left as the processing target, and the smaller area (corresponding to the head 2d) is excluded from the processing target. In this example, since the area of the region 316a is larger than the area of the region 316b, the region 316a is left as a processing target.

最後に、領域316aの長さL2’(アンプル2Aの胴部2cの長さL2に相当)の中間と幅W’(アンプル2Aの胴部2cの幅Wに相当)の中間を吸着位置SPに設定する(図25のステップ5)。 Finally, the middle of the length L2'(corresponding to the length L2 of the body 2c of the ampoule 2A) and the middle of the width W'(corresponding to the width W of the body 2c of the ampoule 2A) of the region 316a are set as the suction position SP. Set (step 5 in FIG. 25).

以上の手順により、仮置き部301のカメラ307によって撮影された画像に基づいて、返品薬剤2を吸着ノズル701,801で安定して保持できる吸着位置SPを自動的に決定できる。その結果、直交型ロボット700は、仮置き部301の半透明板305上に載置された返品薬剤2を、その軸線Aが水平方向に対して平行な状態でラベル読取部302に搬送することができ、その頭部2dの先端を衝突させることなく認識部300のラベル読取部302の無端ベルト308上に安全に載置することができる。 By the above procedure, the suction position SP capable of stably holding the returned drug 2 by the suction nozzles 701 and 801 can be automatically determined based on the image taken by the camera 307 of the temporary placement unit 301. As a result, the orthogonal robot 700 conveys the returned drug 2 placed on the translucent plate 305 of the temporary placement section 301 to the label reading section 302 with its axis A parallel to the horizontal direction. It can be safely placed on the endless belt 308 of the label reading unit 302 of the recognition unit 300 without colliding the tip of the head 2d.

(吸着位置決定処理)
返品薬剤が、図26に示すように、ラベル2aの一部を剥がすためのツマミ2bを有する薬品、例えばアイソボリン(登録商標)の場合、ツマミ2bの先端が反って首部に接近しているために、吸着位置を誤検出する虞れがある。すなわち、本来、胴部の長さの中間位置を吸着位置とすべきところ、ツマミの存在によって首部が検出できず、全長の中間位置を吸着位置と設定することがある。
(Adsorption position determination process)
As shown in FIG. 26, in the case of a drug having a knob 2b for peeling off a part of the label 2a, for example, Isobolin (registered trademark), the tip of the knob 2b is warped and close to the neck. , There is a risk of erroneous detection of the suction position. That is, originally, the intermediate position of the length of the body should be set as the suction position, but the neck cannot be detected due to the presence of the knob, and the intermediate position of the entire length may be set as the suction position.

このような誤検出を防止するための吸着位置決定手段としては、
薬剤の識別情報を認識する薬剤認識装置において、
前記薬剤を載置する薬剤載置部と、
前記薬剤載置部に載置された薬剤を撮影する撮影部と、
前記撮影部で撮影された薬剤の画像に基づいて、前記画像を垂直方向に縮小して、縮小前の画像と縮小後の画像の差分領域を求める処理と、前記差分領域の画像を水平方向にオープニングするオープニング処理と、オープニング処理された画像の長い方の領域を選択する処理と、前記長い方の領域の中心座標を求める処理とからなる画像処理部を備える。
As a means for determining the suction position to prevent such false detection,
In a drug recognition device that recognizes drug identification information
The drug placement section on which the drug is placed and the drug placement section
An imaging unit that photographs the drug placed on the drug placement unit,
Based on the image of the drug taken by the photographing unit, the image is reduced in the vertical direction to obtain the difference area between the image before reduction and the image after reduction, and the image in the difference area is horizontally reduced. It includes an image processing unit including an opening process for opening, a process for selecting a longer region of the opened image, and a process for obtaining the center coordinates of the longer region.

図27は、吸着位置決定処理を示す。まず、仮置き部301のカメラ307によって撮影された返品薬剤の画像(ステップ1)を2値化・エッジ処理し(ステップ2)、画像の位置が撮影領域の中央でかつ水平になるように画像をアフィン変換する(ステップ3)。続いて、画像を垂直方向に縮小し(ステップ4)、縮小前の画像と縮小後の画像の差分領域を求め(ステップ5)、水平方向にオープニング処理すると(ステップ6)、画像の小さい部分や細い部分が除去されて、首部分の2本の像からなる領域と、胴部分の2本の像からなる領域とに分かれる(ステップ7)。そこで、長い方の領域を選択して(ステップ6)、逆アフィン変換し(ステップ8)、残った長い方の領域の2本の像の合集合の中心座標を吸着位置とする(ステップ9)。さらに、吸着位置と頭部輪郭中心点の距離をオフセットとする(ステップ10)。このオフセットは、薬剤をラベル読取部302に移送して無端ベルト308上に載置する際に返品薬剤2の底がストッパ317に当たらないように、薬剤2を位置決めするのに使用される。 FIG. 27 shows the adsorption position determination process. First, the image of the returned drug (step 1) taken by the camera 307 of the temporary placement portion 301 is binarized and edge-processed (step 2), and the image is imaged so that the position of the image is in the center of the shooting area and is horizontal. Is converted to affine (step 3). Subsequently, the image is reduced in the vertical direction (step 4), the difference area between the image before reduction and the image after reduction is obtained (step 5), and the opening process is performed in the horizontal direction (step 6). The thin portion is removed and divided into a region consisting of two images of the neck portion and a region consisting of two images of the body portion (step 7). Therefore, the longer region is selected (step 6), the inverse affine transformation is performed (step 8), and the center coordinate of the union of the two images of the remaining longer region is set as the adsorption position (step 9). .. Further, the distance between the suction position and the center point of the contour of the head is set as an offset (step 10). This offset is used to position the drug 2 so that the bottom of the returned drug 2 does not hit the stopper 317 when the drug is transferred to the label reader 302 and placed on the endless belt 308.

図27の吸着座標決定処理にける垂直方向の縮小処理と水平方向のオープニング処理により、ラベルのツマミが首部に接近している薬剤でも、撮影画像に現れるツマミ部分を除去することができるので、薬剤の胴部の中心位置を吸着位置に設定することができる。 By the vertical reduction process and the horizontal opening process in the adsorption coordinate determination process of FIG. 27, even if the knob of the label is close to the neck, the knob portion appearing in the captured image can be removed, so that the drug can be removed. The center position of the body of the body can be set to the suction position.

(薬剤の種類及び使用期限の認識)
前述したように、認識部300のラベル読取部302において、返品薬剤2の種類及び使用期限が認識される(種類及び使用期限の情報が取得される)。そのために、ラベル読取部302は、図10に示すように、返品薬剤2が載置される無端ベルト308と、無端ベルト308上に載置された返品薬剤2と当接し、その返品薬剤2をその軸線Aを中心として回転させるローラ309とを有する。また、ラベル読取部302は、無端ベルト308を駆動するベルト駆動部(図示せず)と、ローラ309を駆動するローラ駆動部(図示せず)とを有する。ベルト駆動部及びローラ駆動部は、例えばモータであって、制御装置1000によって制御される。
(Recognition of drug type and expiration date)
As described above, the label reading unit 302 of the recognition unit 300 recognizes the type and expiration date of the returned drug 2 (information on the type and expiration date is acquired). Therefore, as shown in FIG. 10, the label reading unit 302 comes into contact with the endless belt 308 on which the returned drug 2 is placed and the returned drug 2 placed on the endless belt 308, and causes the returned drug 2 to come into contact with each other. It has a roller 309 that rotates about the axis A. Further, the label reading unit 302 has a belt driving unit (not shown) for driving the endless belt 308 and a roller driving unit (not shown) for driving the roller 309. The belt drive unit and the roller drive unit are, for example, motors and are controlled by the control device 1000.

返品薬剤2は、図10に示すように、ラベル読取部302に対して位置決めされて維持されている間、ローラ309によって軸線Aを中心として回転し続ける。回転中の返品薬剤2のラベル3は、カメラ311によって撮影されるとともにバーコードリーダ312によって読み取られる。 As shown in FIG. 10, the returned drug 2 continues to rotate about the axis A by the roller 309 while being positioned and maintained with respect to the label reading unit 302. The label 3 of the returned drug 2 in rotation is photographed by the camera 311 and read by the barcode reader 312.

ラベル3には、返品薬剤2の使用期限が記載されているとともに、返品薬剤2の種類を示すバーコードが記載されている。 On the label 3, the expiration date of the returned drug 2 is described, and a bar code indicating the type of the returned drug 2 is described.

制御装置1000は、カメラ311によって撮影されたラベル3が写る画像に基づいて、返品薬剤2の使用期限の情報を取得するように構成されている(ラベル3に記載されている使用期限を認識するOCR部を有する)。また、制御装置1000は、バーコードリーダ312が読み取ったバーコードに基づいて、返品薬剤2の種類の情報を取得するように構成されている。すなわち、制御装置1000は、返品薬剤2の種類及び使用期限を認識するための認識部300の一部として機能する。 The control device 1000 is configured to acquire information on the expiration date of the returned drug 2 based on the image of the label 3 taken by the camera 311 (recognizing the expiration date described on the label 3). Has an OCR unit). Further, the control device 1000 is configured to acquire information on the type of the returned drug 2 based on the barcode read by the barcode reader 312. That is, the control device 1000 functions as a part of the recognition unit 300 for recognizing the type and expiration date of the returned drug 2.

ラベル読取部302での返品薬剤2の種類及び使用期限の認識終了後、無端ベルト308及びローラ309は停止される。 After the label reading unit 302 finishes recognizing the type of the returned drug 2 and the expiration date, the endless belt 308 and the roller 309 are stopped.

制御装置1000は、カメラ311及びバーコードリーダ312を介して、ラベル読取部302の返品薬剤2の種類及び使用期限の情報を取得すると、その取得した種類及び使用期限が取り扱い対象の薬剤であるか否かを判定するように構成されている。 When the control device 1000 acquires information on the type and expiration date of the returned drug 2 of the label reading unit 302 via the camera 311 and the barcode reader 312, is the acquired type and expiration date the drug to be handled? It is configured to determine whether or not.

例えば、返品薬剤2の種類が、ユーザによって返品薬剤供給装置1において取り扱うことが予め決定された種類であれば、その返品薬剤2は取り扱い対象の薬剤と判定される。具体的には、認識された種類が薬剤マスタ内に記憶されている種類であれば、その返品薬剤2は、取り扱い対象の薬剤であると判定される。そうでない場合は、取り扱い対象外と判定される。 For example, if the type of the returned drug 2 is a type previously determined by the user to be handled by the returned drug supply device 1, the returned drug 2 is determined to be a drug to be handled. Specifically, if the recognized type is a type stored in the drug master, the returned drug 2 is determined to be a drug to be handled. If not, it is determined that it is not handled.

また、使用期限が切れていないまたは十分に残っている場合には、その返品薬剤2は、取り扱い対象の薬剤と判定される。一方、使用期限が既に切れているまたは残りの使用期限が数日(例えば2〜3日)である場合、その返品薬剤2は、取り扱い対象外と判定される。 If the expiration date has not expired or is sufficient, the returned drug 2 is determined to be a drug to be handled. On the other hand, if the expiration date has already expired or the remaining expiration date is several days (for example, 2 to 3 days), the returned drug 2 is determined not to be handled.

認識部300のラベル読取部302にて種類及び使用期限が認識された返品薬剤2は、取り扱い対象の薬剤の種類及び使用期限であると制御装置1000によって判定された場合、前述したようにスカラー型ロボット800によって格納部500に移送される。 When the control device 1000 determines that the returned drug 2 whose type and expiration date have been recognized by the label reading unit 302 of the recognition unit 300 is the type and expiration date of the drug to be handled, it is a scalar type as described above. It is transferred to the storage unit 500 by the robot 800.

一方、種類及び使用期限の少なくとも一方が取り扱い対象外の薬剤の種類及び使用期限であると判定されたラベル読取部302の返品薬剤2は、非格納薬剤2’として、非格納薬剤配置部400の非格納薬剤配置箱401、402に移送される(最終的には、非格納薬剤用返品トレー4’に移載される)。 On the other hand, the returned drug 2 of the label reading unit 302 determined to have at least one of the type and the expiration date of the drug not to be handled is the non-stored drug 2'in the non-stored drug arranging unit 400. It is transferred to the non-stored drug placement boxes 401 and 402 (eventually transferred to the non-stored drug return tray 4').

(エラー処理)
認識部300の仮置き部301に載置された返品薬剤2を画像処理する過程で、複数薬剤や異物・汚れ・立ち薬剤が存在したり、解析範囲AR外に返品薬剤があるといった異常があると、返品薬剤2の形状及び大きさを認識したり、吸着位置を決定できない。このため、このような場合にディスプレイ1002上でユーザにエラーを表示して、エラーの原因を除去するよう促す必要がある。
(Error handling)
In the process of image processing the returned drug 2 placed on the temporary placement section 301 of the recognition unit 300, there are abnormalities such as the presence of a plurality of drugs, foreign substances, stains, standing drugs, or the returned drug outside the analysis range AR. And, the shape and size of the returned drug 2 cannot be recognized, and the adsorption position cannot be determined. Therefore, in such a case, it is necessary to display an error on the display 1002 and urge the user to eliminate the cause of the error.

複数薬剤の判定では、撮影された領域内にある2値化された抽出画像Fの個数をカウントし、2以上あれば複数薬剤と判定する。 In the determination of the plurality of drugs, the number of binarized extracted images F in the photographed area is counted, and if it is 2 or more, it is determined to be a plurality of drugs.

異物・汚れの判定では、撮影された領域内にある2値化された抽出画像Fのピクセル数が閾値(15000ピクセル)以下であれば、ごみ等の異物と判定する。また、ピクセル数が閾値以上であるが、画像のエッジ輝度が閾値以下であれば、汚れと判定する。 In the determination of foreign matter / dirt, if the number of pixels of the binarized extracted image F in the photographed area is equal to or less than the threshold value (15000 pixels), it is determined to be foreign matter such as dust. Further, if the number of pixels is equal to or greater than the threshold value but the edge brightness of the image is equal to or less than the threshold value, it is determined to be dirty.

立ち薬剤の判定では、撮影された領域内にある2値化された抽出画像Fの真円度を求め、閾値0.7と比較して、閾値以上の場合、立ち薬剤と判定する。真円度は、抽出画像Fの中心点とその中心点からの最も離れた点との距離をrmaxとした場合、抽出画像Fの面積/(rmax×π)で求められる。抽出画像Fが真円である場合、真円度は1であるが、立ち薬剤と判定する閾値は、0.7から1の間とすることが好ましい。 In the determination of the standing drug, the roundness of the binarized extracted image F in the photographed region is obtained, compared with the threshold value 0.7, and if it is equal to or higher than the threshold value, it is determined to be the standing drug. The roundness is obtained by the area of the extracted image F / (rmax 2 × π), where rmax is the distance between the center point of the extracted image F and the farthest point from the center point. When the extracted image F is a perfect circle, the roundness is 1, but the threshold value for determining the standing drug is preferably between 0.7 and 1.

範囲外薬剤の判定では、前述した解析範囲AR内に抽出画像Fの全体が入っているか否かを判断する。図28に示すように、載置面305aの撮影領域の例えば10mm内側に解析範囲ARを形成する場合、載置面305aの左上の頂点を原点(0,0)、載置面305aの長さをx,yとし、撮影された領域の辺とx,yと同値であるとすると、解析範囲は、(10,10)−(x−10,10)と、(10,10)−(10,y−10)に囲まれた範囲となる。抽出画像Fのピクセルが一つでも解析範囲AR内に含まれていなければ、範囲外薬剤と判断する。 In the determination of the out-of-range drug, it is determined whether or not the entire extracted image F is included in the analysis range AR described above. As shown in FIG. 28, when the analysis range AR is formed, for example, 10 mm inside the imaging region of the mounting surface 305a, the upper left apex of the mounting surface 305a is the origin (0,0), and the length of the mounting surface 305a. Let x, y be, and if the sides of the photographed area are equivalent to x, y, the analysis ranges are (10,10)-(x-10,10) and (10,10)-(10). , Y-10). If even one pixel of the extracted image F is not included in the analysis range AR, it is determined to be an out-of-range drug.

認識部300のラベル読取部302では、電源立ち上げ時(停電後の電源復旧時を含む)の運転開始前に、ラベル読取部302のカメラ311による撮影画像領域内に、2値化された抽出画像Fが有るか否かのみを判断する。 In the label reading unit 302 of the recognition unit 300, binarized extraction is performed in the captured image area by the camera 311 of the label reading unit 302 before the operation is started when the power is turned on (including when the power is restored after a power failure). Only the presence or absence of the image F is determined.

以上のようなエラーが判定されると、制御装置1000は、エラー画像を作成する。エラー画像は、カメラ304又はカメラ311による撮影画像中の異常がある部分を識別する識別マークを重ね合わせる。識別マークは、矩形や円形の枠、矢印等を画像や背景と明瞭に識別できる色とすることが好ましい。例えば、複数薬剤と判定された複数の抽出画像F、異物・汚れと判定された抽出画像F、立ち薬剤と判定された抽出画像F、範囲外薬剤と判定された抽出画像Fの輪郭を囲むように、例えば赤枠を重ね合わせる。 When the above error is determined, the control device 1000 creates an error image. The error image is superimposed with an identification mark that identifies an abnormal portion in the image captured by the camera 304 or the camera 311. The identification mark is preferably a color that can clearly distinguish a rectangular or circular frame, an arrow, or the like from an image or a background. For example, to surround the contours of a plurality of extracted images F determined to be a plurality of drugs, an extracted image F determined to be a foreign substance / dirt, an extracted image F determined to be a standing drug, and an extracted image F determined to be an out-of-range drug. For example, the red frame is superimposed on.

記憶部1004cには、複数薬剤、異物・汚れ、立ち薬剤、範囲外薬剤等のエラーに対応するエラーコード番号と、エラー内容、当該エラーに対処すべき対処方法が予め記憶されている。 The storage unit 1004c stores in advance an error code number corresponding to an error such as a plurality of drugs, foreign matter / dirt, standing drug, out-of-range drug, error content, and a coping method for dealing with the error.

制御装置1000は、ブザーを鳴らすとともに、ディスプレイのホーム画面のメッセージ部に、「エラー」ボタンを表示し、エラーが生じたことをユーザに知らせる。あるいは、ブザーを鳴らすとともに、後述するエラー画面を表示し、ユーザがエラー処理せずにエラー画面を閉じる選択をした場合に「エラー」ボタンを表示してもよい。 The control device 1000 sounds a buzzer and displays an "error" button in the message section of the home screen of the display to notify the user that an error has occurred. Alternatively, the buzzer may be sounded, an error screen described later may be displayed, and an "error" button may be displayed when the user selects to close the error screen without processing the error.

図29は、ディスプレイ1002のホーム画面1101を示す。ホーム画面1101には、「待機中」等の装置の動作状態、ライン及びユニット番号、空の返却トレイ(非格納薬剤配置箱401、402)の個数、NGトレイ(非格納)における薬品の有無、返品薬剤を返却可能か否か、装置の各扉のロック状態、及び格納部の薬品搭載量、モード状態、横向き「▲」及び「■」ボタンを示すインフォメーション部と、「処理を選択してください」等のメッセージ部と、欠品の有無、使用期限の登録変更、期限間近薬品の有無、期限切れ薬品の有無、長期滞留薬品の有無、超過薬品の有無をそれぞれ示すステータス部と、「指示回収」、「照会・充填」、「各種設定」、「扉開錠」及び「終了」の処理を示す操作部とが示されている。図30に示すように、メッセージ部には、後述する異常判定により所定のエラーが判定された場合に「エラー」ボタン1102が表示される。 FIG. 29 shows the home screen 1101 of the display 1002. On the home screen 1101, the operating status of the device such as "standby", the line and unit number, the number of empty return trays (non-stored drug placement boxes 401, 402), the presence or absence of chemicals in the NG tray (non-stored), Whether or not the returned medicine can be returned, the locked state of each door of the device, the amount of medicine loaded in the storage part, the mode state, the information part indicating the sideways "▲" and "■" buttons, and "Select processing" , Etc., status section indicating whether there is a shortage, change of registration of expiration date, presence of medicines near the expiration date, presence of expired medicines, presence of long-term retention medicines, presence of excess medicines, and "instruction collection". , "Inquiry / filling", "various settings", "door unlocking" and "end" processing are shown. As shown in FIG. 30, the message unit displays an "error" button 1102 when a predetermined error is determined by the abnormality determination described later.

ユーザにより「エラー」ボタン1102が押されると、制御装置1000は、ホーム画面1101をエラー画面1103に切り換える一方、記憶部1004cから判定したエラーに対応するエラーコード番号、エラー内容又は指示内容、対処方法を呼び出して、エラー画像とともにエラー画面1103に表示する。 When the "error" button 1102 is pressed by the user, the control device 1000 switches the home screen 1101 to the error screen 1103, while the error code number corresponding to the error determined from the storage unit 1004c, the error content or the instruction content, and the coping method. Is called and displayed on the error screen 1103 together with the error image.

図31は、複数薬品と判定された場合のエラー画面1103の一例であるが、異物・汚れと判定された場合も同様である。エラー画面1103の左上部には、エラーコード番号1104と、「複数薬品検出」というエラー内容1105が表示される。エラー画面1103の右側部には、エラー画像1106が表示される。エラー画像1106は、2つの返品薬剤2が載置された仮置き部301の撮影画像に、2つの返品薬剤2の輪郭を囲む赤枠の識別マーク1107を重ね合わせて表示されている。エラー画面1103の左側部には、当該エラーに対する対処方法1108が表示される。対処方法1108には、扉の開錠、薬品の取り除き、扉の閉鎖、リスタートボタンの押圧が、順に示されている。エラー画面1103の左下部には、「リスタート」ボタン1109、「閉じる」ボタン1110が表示され、右下部には、「扉開錠」ボタン1111、「ブザー停止」ボタン1112が表示されている。 FIG. 31 is an example of the error screen 1103 when it is determined that there are a plurality of chemicals, but the same applies when it is determined that it is foreign matter / dirt. In the upper left part of the error screen 1103, the error code number 1104 and the error content 1105 "multiple drug detection" are displayed. The error image 1106 is displayed on the right side of the error screen 1103. The error image 1106 is displayed by superimposing the identification mark 1107 of the red frame surrounding the outline of the two returned drugs 2 on the photographed image of the temporary placement portion 301 on which the two returned drugs 2 are placed. On the left side of the error screen 1103, the coping method 1108 for the error is displayed. In the coping method 1108, unlocking the door, removing the chemical, closing the door, and pressing the restart button are shown in order. A "restart" button 1109 and a "close" button 1110 are displayed in the lower left of the error screen 1103, and a "door unlock" button 1111 and a "buzzer stop" button 1112 are displayed in the lower right.

ユーザは、エラー画面1103が表示されると、まずエラー画面1103の「ブザー停止」ボタン1112を押してブザーを止め、エラー内容を確認し、対処方法1108に記載の手順に従って、エラーを解除することができる。「扉開錠」ボタン1111を押すと、図32に示す扉開錠画面1113がポップアップされるので、対処方法1108に記載されている扉を選択して扉開錠画面1113を閉じると、該当する扉が開錠される。エラー画像1106に赤枠の識別マーク1107で囲まれた部分を参照しながら、開いた扉の中の仮置き部301上に存在する返品薬剤2、又は異物・汚れを除去することができる。エラーの原因を除去した後、扉を閉じて、エラー画面1103の「リスタート」ボタン1105を押し、エラー画面1103を閉じる。これにより、装置の動作が再開する。 When the error screen 1103 is displayed, the user first presses the "stop buzzer" button 1112 on the error screen 1103 to stop the buzzer, confirms the error content, and cancels the error according to the procedure described in the countermeasure 1108. can. When the "door unlocking" button 1111 is pressed, the door unlocking screen 1113 shown in FIG. 32 pops up. The door is unlocked. While referring to the portion surrounded by the identification mark 1107 in the red frame in the error image 1106, the returned drug 2 existing on the temporary placement portion 301 in the open door, or foreign matter / dirt can be removed. After removing the cause of the error, the door is closed and the "restart" button 1105 of the error screen 1103 is pressed to close the error screen 1103. As a result, the operation of the device is restarted.

図33は、立ち薬剤と判定された場合のエラー画面1103の一例である。エラー画面1103の構成は、図31と同様である。エラー内容1105は、「薬品が立っている」と表示されている。エラー画像1106には、立ち薬剤が載置された仮置き部301の撮影画像に、立ち薬剤の輪郭を囲む赤枠の識別マーク1107を重ね合わせて表示されている。 FIG. 33 is an example of the error screen 1103 when it is determined to be a standing drug. The configuration of the error screen 1103 is the same as that shown in FIG. The error content 1105 is displayed as "the drug is standing". In the error image 1106, the identification mark 1107 of the red frame surrounding the outline of the standing medicine is superimposed on the photographed image of the temporary placement portion 301 on which the standing medicine is placed.

図34は、範囲外薬剤と判定された場合のエラー画面1103の一例である。エラー画面1103の構成は、図31と同様である。エラー内容1105は、「薬品範囲外」と表示されている。エラー画像1106には、一部が解析範囲外に載置された仮置き部301の撮影画像に、範囲外薬剤の輪郭を囲む赤枠の識別マーク1107を重ね合わせて表示されている。 FIG. 34 is an example of the error screen 1103 when it is determined that the drug is out of range. The configuration of the error screen 1103 is the same as that shown in FIG. The error content 1105 is displayed as "out of range of chemicals". In the error image 1106, the identification mark 1107 of the red frame surrounding the outline of the out-of-range drug is superimposed on the photographed image of the temporary placement portion 301 partially placed outside the analysis range.

「リスタート」ボタン1105が押されても、エラーの原因がまだ残っている場合は、再度エラー画面1103を表示する。図35は、エラー原因が除去されていない場合のエラー画面1103の一例である。エラー画面1103の構成は、図31と同様である。このエラー画面1103は2回目であるから、「複数薬品検出」、「薬品が立っている」、「薬品範囲外」といったエラー内容ではなく、「薬品取り除き」という指示内容1114が表示され、薬品を早く取り除くことを促す表現になっている。 If the cause of the error still remains even after the "restart" button 1105 is pressed, the error screen 1103 is displayed again. FIG. 35 is an example of the error screen 1103 when the cause of the error is not removed. The configuration of the error screen 1103 is the same as that shown in FIG. Since this error screen 1103 is the second time, the instruction content 1114 of "drug removal" is displayed instead of the error contents such as "multiple chemicals detected", "drugs are standing", and "outside the chemical range", and the chemicals are displayed. It is an expression that encourages early removal.

図36は、認識部300のラベル読取部302におけるエラー画面1103である。停電後に電源が復旧した時、ラベル読取部302の無端ベルト308上に返品薬剤2や異物が残っていると、後続の返品薬剤2のラベル読み取りができなくなるので、ユーザに薬品又は異物を取り除くように促す。エラー画面1103の構成は、図31と同様である。エラー内容の代わりに、「薬品取り除き」という指示内容1114が表示されている。エラー画像1106には、返品薬剤2又は異物が残っているラベル読取部302の撮影画像に、当該返品薬剤又は異物の輪郭を囲む赤枠の識別マーク1107を重ね合わせて表示されている。 FIG. 36 is an error screen 1103 in the label reading unit 302 of the recognition unit 300. When the power is restored after a power failure, if the returned drug 2 or foreign matter remains on the endless belt 308 of the label reading unit 302, the subsequent label reading of the returned medicine 2 cannot be performed. To urge. The configuration of the error screen 1103 is the same as that shown in FIG. Instead of the error content, the instruction content 1114 "Chemical removal" is displayed. In the error image 1106, the identification mark 1107 of the red frame surrounding the outline of the returned drug or the foreign substance is superimposed and displayed on the photographed image of the label reading unit 302 in which the returned drug 2 or the foreign substance remains.

図37は、電源立上時に認識部300の仮置き部301、ラベル読取部302、非格納薬剤配置部400に返品薬剤や異物が残っている場合に表示されるエラー画面1103である。エラー画面1103の構成は、図31と同様である。エラー内容の代わりに、「薬品取り除き」という指示内容1114が表示されている。エラー画像1106には、返品薬剤2又は異物が残っているラベル読取部302の撮影画像に、当該返品薬剤又は異物の輪郭を囲む赤枠の識別マーク1107を重ね合わせて表示されている。対処方法1108としては、扉の開錠、形状確認ユニット(仮置き部301)、ローラユニット(ラベル読取部302)、仮置き台(非格納薬剤配置部400)の薬品の取り除き、扉の閉鎖、リスタートボタンの押圧が、順に示されている。 FIG. 37 is an error screen 1103 displayed when a returned drug or a foreign substance remains in the temporary placement section 301, the label reading section 302, and the non-stored drug placement section 400 of the recognition unit 300 when the power supply is turned on. The configuration of the error screen 1103 is the same as that shown in FIG. Instead of the error content, the instruction content 1114 "Chemical removal" is displayed. In the error image 1106, the identification mark 1107 of the red frame surrounding the outline of the returned drug or the foreign substance is superimposed and displayed on the photographed image of the label reading unit 302 in which the returned drug 2 or the foreign substance remains. As a coping method 1108, the door is unlocked, the shape confirmation unit (temporary storage unit 301), the roller unit (label reading unit 302), the temporary storage table (non-stored drug placement unit 400) are removed of chemicals, and the door is closed. The presses on the restart button are shown in order.

以上のように、エラー画面1103に表示されたエラー内容1105、エラー画像1106の像及び識別マーク1107、対処方法1108により、ユーザは、何がエラーの原因か、どこに原因があるか、どのようにしてエラーに対処すればよいかを理解することができるので、エラーを迅速、確実に除去することができる。 As described above, according to the error content 1105 displayed on the error screen 1103, the image of the error image 1106 and the identification mark 1107, and the coping method 1108, the user can determine what is the cause of the error and where the cause is. Since it is possible to understand whether to deal with the error, the error can be eliminated quickly and surely.

(全体の流れ)
次に、これまで説明してきた返品薬剤2の形状等の認識からその認識結果に基づく返品薬剤2の搬送までの流れの一例を、図38から41を参照しながら説明する。
(Overall flow)
Next, an example of the flow from the recognition of the shape and the like of the returned drug 2 described so far to the transportation of the returned drug 2 based on the recognition result will be described with reference to FIGS. 38 to 41.

図38のステップS101で、電源投入時であるか否かが判断され、電源投入時であれば、ステップS102でカメラ307とカメラ311により認識部300の仮置き部301、ラベル認識部302が撮影される。 In step S101 of FIG. 38, it is determined whether or not the power is turned on, and if the power is turned on, the camera 307 and the camera 311 take pictures of the temporary placement unit 301 and the label recognition unit 302 of the recognition unit 300 in step S102. Will be done.

ステップS102で撮影された画像は、ステップS103において、制御装置1000によって画像処理される(エッジ検出処理、2値化処理)。 The image captured in step S102 is image-processed by the control device 1000 in step S103 (edge detection process, binarization process).

ステップS104で、認識部300における返品薬剤又は異物の異常判定1を行う。 In step S104, the recognition unit 300 performs the abnormality determination 1 of the returned drug or the foreign substance.

図39は、異常判定1の流れを示す。ステップS201で、認識部300の仮置き部301、ラベル認識部302の撮影画像に薬剤又は異物があるか否かを判定する。薬剤又は異物の判定は前述した通りである。ステップS202で、薬剤又は異物が無ければリターンし、有ればステップS203でブザーを報知し、ステップS204でディスプレイ1002のホーム画面1101に「エラー」ボタン1102を表示する。ステップS205で「エラー」ボタン1102が押されれば、ステップS206で撮影画像に、該当する薬剤又は異物の輪郭を囲む赤枠の識別マーク1107を重ね合わせたエラー画像1106を作成し、ステップS207でエラー画像1106をディスプレイ1102のエラー画面1103に表示する。続いてステップS208でエラーコード、「取り除き」という指示内容のメッセージ、対処方法をディスプレイに表示する。ステップS209で「リスタート」ボタン1105が押された否かを判断し、押されればステップS201に戻り、押されなければ「リスタート」ボタン1105が押されるまで待機する。 FIG. 39 shows the flow of abnormality determination 1. In step S201, it is determined whether or not there is a drug or a foreign substance in the captured image of the temporary placement unit 301 and the label recognition unit 302 of the recognition unit 300. The determination of the drug or foreign substance is as described above. In step S202, if there is no drug or foreign substance, a return is made, if there is, a buzzer is notified in step S203, and in step S204, an "error" button 1102 is displayed on the home screen 1101 of the display 1002. If the "error" button 1102 is pressed in step S205, an error image 1106 is created by superimposing the identification mark 1107 of the red frame surrounding the outline of the corresponding drug or foreign substance on the photographed image in step S206, and in step S207. The error image 1106 is displayed on the error screen 1103 of the display 1102. Then, in step S208, the error code, the message of the instruction content of "remove", and the remedy are displayed on the display. It is determined in step S209 whether or not the "restart" button 1105 is pressed, and if it is pressed, the process returns to step S201, and if it is not pressed, the process waits until the "restart" button 1105 is pressed.

ステップS104での異常判定1の後、又はステップS101で電源投入時でなければ、図40のステップS105に移行し、認識部での動作を開始する。 After the abnormality determination 1 in step S104, or when the power is not turned on in step S101, the process proceeds to step S105 in FIG. 40, and the operation in the recognition unit is started.

ステップS105において、返品薬剤2が、直交型ロボット700によって認識部300の仮置き部301における半透明板305上に搬送される(載置される)。 In step S105, the returned drug 2 is transported (mounted) on the translucent plate 305 in the temporary placement section 301 of the recognition section 300 by the orthogonal robot 700.

次に、ステップS106において、半透明板305上に載置された返品薬剤2が、その上方に配置されたカメラ307によって撮影される。 Next, in step S106, the returned drug 2 placed on the translucent plate 305 is photographed by the camera 307 arranged above the returned medicine 2.

ステップS106で撮影されたカメラ307の画像は、ステップS107において、制御装置1000によって画像処理される(エッジ検出処理、2値化処理)。 The image of the camera 307 taken in step S106 is image-processed by the control device 1000 in step S107 (edge detection process, binarization process).

ステップS108で、認識部300における複数薬剤、異物・汚れ、立ち薬剤、範囲外薬剤等の異常判定2を行う。 In step S108, abnormality determination 2 of a plurality of chemicals, foreign matter / dirt, standing chemicals, out-of-range chemicals, etc. in the recognition unit 300 is performed.

図41は、異常判定2の流れを示す。ステップS301で、認識部300の仮置き部301の撮影画像に複数薬剤があるか否かを判定する。ステップS302で複数薬剤が無ければ、ステップS303で仮置き部301の撮影画像に異物・汚れがあるか否か判定する。ステップS304で、異物・汚れが無ければ、ステップS305で立ち薬剤があるか否かを判定する。ステップS306で立ち薬剤が無ければ、ステップS307で範囲外薬剤があるか否かを判定する。ステップS308で範囲外薬剤が無ければリターンする。複数薬剤、異物・汚れ、立ち薬剤、範囲外薬剤の判定は前述したとおりである。ステップS302、S304、S306、S308で、複数薬剤、異物・汚れ、立ち薬剤、範囲外薬剤があれば、ステップS309でブザーを報知し、ステップS310でディスプレイ1002のホーム画面1101に「エラー」ボタンを表示する。ステップS311で「エラー」ボタン1102が押されれば、ステップS312で撮影画像に、該当する薬剤又は異物の輪郭を囲む赤枠の識別マーク1107を重ね合わせたエラー画像1106を作成し、ステップS313でエラー画像1106をディスプレイ1002のエラー画面1103に表示する。続いて、ステップS314でフラグRSが0であれば、ステップS315でエラーコード、エラー内容のメッセージ、対処方法をディスプレイ1002のエラー画面1103に表示する。フラグRSは、リスタートボタン1105が押されるごとに1増加する。フラグRSが1以上であれば、ステップS315でエラーコード、「取り除き」という指示内容のメッセージ、対処方法をディスプレイ1002のエラー画面1103に表示する。ステップS317で「リスタート」ボタン1105が押された否かを判断し、押されればステップS318でフラグRSを1増加してステップS301に戻り、押されなければ「リスタート」ボタン1105が押されるまで待機する。 FIG. 41 shows the flow of abnormality determination 2. In step S301, it is determined whether or not there are a plurality of agents in the captured image of the temporary placement unit 301 of the recognition unit 300. If there is no plurality of chemicals in step S302, it is determined in step S303 whether or not the photographed image of the temporary placement portion 301 has foreign matter or dirt. If there is no foreign matter or dirt in step S304, it is determined in step S305 whether or not there is a standing agent. If there is no standing drug in step S306, it is determined in step S307 whether or not there is an out-of-range drug. If there is no out-of-range drug in step S308, it returns. The determination of multiple drugs, foreign substances / dirt, standing drugs, and out-of-range drugs is as described above. If there are multiple drugs, foreign substances / dirt, standing drugs, and out-of-range drugs in steps S302, S304, S306, and S308, a buzzer is notified in step S309, and an "error" button is displayed on the home screen 1101 of the display 1002 in step S310. indicate. If the "error" button 1102 is pressed in step S311, an error image 1106 is created by superimposing the identification mark 1107 of the red frame surrounding the outline of the corresponding drug or foreign substance on the photographed image in step S312, and in step S313. The error image 1106 is displayed on the error screen 1103 of the display 1002. Subsequently, if the flag RS is 0 in step S314, the error code, the error content message, and the coping method are displayed on the error screen 1103 of the display 1002 in step S315. The flag RS is incremented by 1 each time the restart button 1105 is pressed. If the flag RS is 1 or more, the error code, the message of the instruction content of "remove", and the coping method are displayed on the error screen 1103 of the display 1002 in step S315. It is determined in step S317 whether or not the "restart" button 1105 is pressed, and if it is pressed, the flag RS is incremented by 1 in step S318 to return to step S301, and if it is not pressed, the "restart" button 1105 is pressed. Wait until

異常判定2を終えると、図40に戻り、ステップS109において、制御装置1000は、ステップS107で画像処理されたカメラ307の画像に基づいて、仮置き部301の半透明板305上に載置された返品薬剤2の形状の情報を取得する。 When the abnormality determination 2 is completed, the process returns to FIG. 40, and in step S109, the control device 1000 is placed on the translucent plate 305 of the temporary placement portion 301 based on the image of the camera 307 image-processed in step S107. Obtain information on the shape of the returned drug 2.

ステップS110において、制御装置1000は、ステップS109で取得した返品薬剤2の形状の情報に基づいて、仮置き部301の半透明板305上に載置された返品薬剤2の形状が取り扱い対象の薬剤の形状であるか否かを判定する。返品薬剤2の形状が取り扱い対象の薬剤の形状である場合にはステップS111に進み、そうでない場合(取り扱い対象外である場合)にはステップS120に進む。 In step S110, the control device 1000 handles the shape of the returned medicine 2 placed on the translucent plate 305 of the temporary placement portion 301 based on the information on the shape of the returned medicine 2 acquired in step S109. It is determined whether or not the shape is. If the shape of the returned drug 2 is the shape of the drug to be handled, the process proceeds to step S111, and if not, the process proceeds to step S120.

ステップS111において、制御装置1000は、ステップS107で画像処理されたカメラ307の画像に基づいて、仮置き部301の半透明板305上に載置された返品薬剤2の大きさの情報を取得する。 In step S111, the control device 1000 acquires information on the size of the returned drug 2 placed on the translucent plate 305 of the temporary placement portion 301 based on the image of the camera 307 image-processed in step S107. ..

ステップS112において、制御装置1000は、ステップS111で取得した返品薬剤2の大きさの情報に基づいて、仮置き部301の半透明板305上に載置された返品薬剤2の大きさが取り扱い対象の薬剤の大きさであるか否かを判定する。返品薬剤2の大きさが取り扱い対象の薬剤の大きさである場合にはステップS113に進み、そうでない場合(取り扱い対象外である場合)にはステップS120に進む。 In step S112, the control device 1000 handles the size of the returned drug 2 placed on the translucent plate 305 of the temporary placement section 301 based on the information on the size of the returned drug 2 acquired in step S111. Determine if it is the size of the drug. If the size of the returned drug 2 is the size of the drug to be handled, the process proceeds to step S113, and if not, the process proceeds to step S120.

ステップS113において、仮置き部301の返品薬剤2は、直交型ロボット700によってラベル読取部302に搬送される。それにより、返品薬剤2は、ラベル読取部302にセットされる。 In step S113, the returned drug 2 of the temporary placement unit 301 is conveyed to the label reading unit 302 by the orthogonal robot 700. As a result, the returned drug 2 is set in the label reading unit 302.

ステップS114において、制御装置1000は、ステップS206で取得した返品薬剤2の大きさ(外径)に基づいて、返品薬剤2に当接して該返品薬剤2を回転させるラベル読取部302のローラ309の回転速度を調節する。 In step S114, the control device 1000 of the roller 309 of the label reading unit 302 that abuts on the returned drug 2 and rotates the returned drug 2 based on the size (outer diameter) of the returned drug 2 acquired in step S206. Adjust the rotation speed.

ステップS115において、制御装置1000は、返品薬剤2のラベル3がカメラ311やバーコードリーダ312によって正確に読み取り可能か否か判定する。ラベル3に記載された使用期限や返品薬剤2の種類を示すバーコードを正確に読み取れる場合にはステップS116に進む。例えば、使用期限やバーコードが部分的に消えているなど、これらを正確に読み取れない場合にはステップS120に進む。 In step S115, the control device 1000 determines whether or not the label 3 of the returned drug 2 can be accurately read by the camera 311 or the barcode reader 312. If the barcode indicating the expiration date and the type of the returned drug 2 written on the label 3 can be accurately read, the process proceeds to step S116. For example, if the expiration date or the barcode has partially disappeared and these cannot be read accurately, the process proceeds to step S120.

ステップS116において、ラベル読取部302において返品薬剤2のラベル3が正確にカメラ311やバーコードリーダ312によって読み取られる。 In step S116, the label 3 of the returned drug 2 is accurately read by the camera 311 or the barcode reader 312 in the label reading unit 302.

ステップS117において、制御装置1000は、ステップS211で読み取られた返品薬剤2のラベル3に基づいて、その返品薬剤2の種類及び使用期限の情報を取得する。 In step S117, the control device 1000 acquires information on the type and expiration date of the returned drug 2 based on the label 3 of the returned drug 2 read in step S211.

ステップS118において、制御装置1000は、ステップS117で取得した返品薬剤2の種類及び使用期限の情報に基づいて、ラベル読取部302にセットされた返品薬剤2の種類及び使用期限が取り扱い対象の薬剤の種類及び使用期限であるか否か判定する。すなわち、返品薬剤2の種類が薬品マスタに記憶されている種類であるか否かが判定されるとともに、使用期限が切れていないまたは使用期限が十分にあるか否かが判定される。返品薬剤2の種類及び使用期限の両方が取り扱い対象の薬剤のものである場合にはステップS119に進む。そうではない場合にはステップS120に進む。 In step S118, the control device 1000 determines that the type and expiration date of the returned drug 2 set in the label reading unit 302 are the drugs to be handled, based on the information on the type and expiration date of the returned drug 2 acquired in step S117. Determine the type and expiration date. That is, it is determined whether or not the type of the returned drug 2 is the type stored in the drug master, and whether or not the expiration date has expired or the expiration date is sufficient. If both the type of the returned drug 2 and the expiration date are those of the drug to be handled, the process proceeds to step S119. If not, the process proceeds to step S120.

ステップS119において、ラベル読取部302の返品薬剤2が、取り扱い対象の薬剤として、スカラー型ロボット800によって格納部500に搬送される。すなわち、形状、大きさ、種類、及び使用期限が取り扱い対象の薬剤の形状、大きさ、種類、及び使用期限である返品薬剤2が格納部500に格納される。 In step S119, the returned drug 2 of the label reading unit 302 is conveyed to the storage unit 500 by the scalar type robot 800 as the drug to be handled. That is, the returned drug 2 whose shape, size, type, and expiration date is the shape, size, type, and expiration date of the drug to be handled is stored in the storage unit 500.

ステップS120において、ステップS110で形状が取り扱い対象外の薬剤の形状と判定された返品薬剤2、ステップS112で大きさが取り扱い対象外の薬剤の大きさと判定された返品薬剤2、ステップS115でラベル3が読み取り不可能と判定された返品薬剤2、またはステップS118で種類及び使用期限の少なくとも一方が取り扱い対象外の薬剤のものと判定された返品薬剤2は、非格納薬剤2’として、非格納薬剤配置部400に搬送(格納)される。 In step S120, the returned drug 2 whose shape is determined to be the shape of the drug not to be handled in step S110, the returned drug 2 whose size is determined to be the size of the drug not to be handled in step S112, and the label 3 in step S115. The returned drug 2 determined to be unreadable, or the returned drug 2 determined in step S118 to be a drug whose type and expiration date are not subject to handling, is designated as a non-stored drug 2'. It is conveyed (stored) to the arrangement unit 400.

(形状解析処理の流れ)
図42は、図40のステップS107の画像処理とステップS108の異常判定2を含めた形状解析処理の他の例を示す。ステップS401で、撮影画像を取得し、ステップS402で薬品領域抽出処理を行う。
(Flow of shape analysis processing)
FIG. 42 shows another example of the image processing of step S107 of FIG. 40 and the shape analysis processing including the abnormality determination 2 of step S108. In step S401, a photographed image is acquired, and in step S402, a chemical region extraction process is performed.

薬品領域抽出処理は、図43に示すように、ステップS501で二値化領域とエッジ領域の和集合である領域(Reg_th)を求め、ステップS502で画像の膨張・縮小処理により新領域(Reg_th_new)を求める。ステップS503で新領域(Reg_th_new)のフィルタリング処理により面積が3900ピクセル以下の部分を無視して選択領域(Reg_sel)を求め、ステップS504で選択領域(Reg_sel)とエッジ領域との交差領域を連結・穴埋めして得られる交差閉領域(Reg_int)を求める。この交差閉領域を求めることにより、抽出対象とする領域の明瞭なエッジが現れる。ステップS505で、交差閉領域(Reg_int)がゼロでない、すなわち、交差閉領域(Reg_int)が存在すれば、ステップS506で、交差閉領域(Reg_int)が1であるか否かを判断する。交差閉領域(Reg_int)が1であれば、ステップS503で選択領域(Reg_sel)の面積が15000ピクセルを超えるか否かを判断する。閾値の15000ピクセルは、返品薬払出装置で扱う最小の薬品の画像の画素数である。選択領域(Reg_sel)の面積が15000ピクセルを超えていれば、ステップS508で選択領域(Reg_sel)の輪郭エッジの輝度値(対象領域の輝度値の平均値)が所定の閾値Thを超えるか否かを判断する。閾値Thを超えていれば、ステップS509で画像は「正常」であると判断する。 In the chemical region extraction process, as shown in FIG. 43, a region (Reg_th) which is a union of the binarized region and the edge region is obtained in step S501, and a new region (Reg_th_new) is obtained by expanding / reducing the image in step S502. Ask for. In step S503, the selection area (Reg_sel) is obtained by ignoring the portion having an area of 3900 pixels or less by the filtering process of the new area (Reg_th_new), and in step S504, the intersection area between the selection area (Reg_sel) and the edge area is connected / filled. The cross-closed area (Reg_int) obtained by By obtaining this cross-closed region, a clear edge of the region to be extracted appears. If the cross-closed region (Reg_int) is not zero in step S505, that is, if the cross-closed region (Reg_int) exists, it is determined in step S506 whether or not the cross-closed region (Reg_int) is 1. If the cross-closed area (Reg_int) is 1, it is determined in step S503 whether or not the area of the selected area (Reg_sel) exceeds 15,000 pixels. The threshold value of 15,000 pixels is the number of pixels of the image of the minimum medicine handled by the returned medicine dispenser. If the area of the selected area (Reg_sel) exceeds 15,000 pixels, whether or not the brightness value (average value of the brightness values of the target area) of the contour edge of the selected area (Reg_sel) exceeds the predetermined threshold value Th in step S508. To judge. If the threshold Th is exceeded, the image is determined to be "normal" in step S509.

ステップS506の判断で、交差閉領域(Reg_int)が1でなければ、明瞭なエッジを有する交差閉領域が複数であるため、ステップS518で画像は「複数薬品」であると判断する。
また、ステップS507の判断で、選択領域(Reg_sel)の面積が15000ピクセル以下であれば、最小の薬品でもないため、ステップS517で、画像は「汚れ・ゴミ」であると判断する。
さらに、ステップS508の判断で、選択領域(Reg_sel)の輪郭エッジの輝度値が所定の閾値Th以下であれば、ステップS517で、画像は「汚れ・ゴミ」であると判断する。
If the cross-closed region (Reg_int) is not 1 in the determination of step S506, it is determined that the image is "plural chemicals" in step S518 because there are a plurality of cross-closed regions having clear edges.
Further, in the judgment of step S507, if the area of the selected area (Reg_sel) is 15,000 pixels or less, it is not the minimum chemical, and therefore, in step S517, it is determined that the image is "dirt / dust".
Further, in the judgment of step S508, if the luminance value of the contour edge of the selected region (Reg_sel) is equal to or less than the predetermined threshold value Th, it is determined in step S517 that the image is “dirt / dust”.

ステップS505の判断で、交差閉領域(Reg_int)がゼロ、すなわち、交差閉領域(Reg_int)が存在しなければ、ステップS510に移行にする。交差閉領域(Reg_int)が存在しなければ、画像は薬品でないと言えるが、画像がゴミ・汚れなのか、薬品がないのかは不明である。ステップS510で、新領域(Reg_th_new)のフィルタリング処理により面積が500ピクセル以下の部分を無視して選択領域(Reg_sel2)を求め、ステップS511で選択領域(Reg_sel2)とエッジ領域との交差閉領域(Reg_int2)を求める。ステップS512で、交差閉領域(Reg_int2)がゼロ、すなわち、交差閉領域(Reg_int2)が存在しなければ、ステップS513で選択領域(Reg_sel2)と交差閉領域(Reg_int2)との面積比が0.75を超えるか否か判断する。エッジ領域に対して全領域の面積が小さいものは大きさがないと言える。ステップS513で、選択領域(Reg_sel2)と交差閉領域(Reg_int2)との面積比が0.75以下であれば、ステップS514で、領域(Reg_th)のフィルタリング処理により輪郭の長さが500ピクセル以下の部分を無視して選択領域(Reg_sel3)を求める。ステップS515で、選択領域(Reg_sel3)の輪郭エッジの輝度値(対象領域の輝度値の平均値)が所定の第2閾値Th2を超えるか否かを判断する。第2閾値Th2以下であれば、ステップS516で画像は「薬品なし」であると判断する。 If the cross-closed region (Reg_int) is zero at the judgment of step S505, that is, if the cross-closed region (Reg_int) does not exist, the process proceeds to step S510. If the cross-closed area (Reg_int) does not exist, it can be said that the image is not a chemical, but it is unknown whether the image is dusty or dirty or if there is no chemical. In step S510, the selection area (Reg_sel2) is obtained by ignoring the portion having an area of 500 pixels or less by the filtering process of the new area (Reg_th_new), and in step S511, the cross-closed area (Reg_int2) between the selection area (Reg_sel2) and the edge area is obtained. ). In step S512, if the cross-closed region (Reg_int2) is zero, that is, if the cross-closed region (Reg_int2) does not exist, the area ratio between the selected region (Reg_sel2) and the cross-closed region (Reg_int2) is 0.75 in step S513. Judge whether or not it exceeds. It can be said that if the area of the entire area is smaller than that of the edge area, there is no size. If the area ratio between the selected area (Reg_sel2) and the cross-closed area (Reg_int2) is 0.75 or less in step S513, the contour length is 500 pixels or less by the filtering process of the area (Reg_th) in step S514. The selected area (Reg_sel3) is obtained by ignoring the part. In step S515, it is determined whether or not the luminance value (average value of the luminance values of the target region) of the contour edge of the selected region (Reg_sel3) exceeds a predetermined second threshold value Th2. If it is equal to or less than the second threshold value Th2, it is determined in step S516 that the image is “no chemicals”.

ステップS512の判断で、交差閉領域(Reg_int2)がゼロでない、すなわち、交差閉領域(Reg_int2)が存在すれば、薬品でない何かが存在するので、ステップS517で、画像は「汚れ・ゴミ」であると判断する。
ステップS513の判断で、面積比が0.75を超えていれば、ある程度の大きさがあるので、ステップS517で画像は「汚れ・ゴミ」であると判断する。
ステップ515の判断で、選択領域(Reg_sel3)の輪郭エッジの輝度値が第2閾値Th2を超えていれば、ステップS517で画像は「汚れ・ゴミ」であると判断する。
At the judgment of step S512, if the cross-closed region (Reg_int2) is not zero, that is, if the cross-closed region (Reg_int2) exists, there is something that is not a chemical, so in step S517, the image is "dirt / dust". Judge that there is.
If the area ratio exceeds 0.75 in the judgment of step S513, the image has a certain size, and the image is judged to be "dirt / dust" in step S517.
If the brightness value of the contour edge of the selected area (Reg_sel3) exceeds the second threshold value Th2 in the judgment of step 515, it is determined in step S517 that the image is “dirt / dust”.

ステップS508における閾値Thと、ステップS515における第2閾値Th2は、255>Th>Th2>0の関係がある。エッジ処理により得られた対象領域が薬品である場合、輪郭エッジの輝度値の平均値は高くなる傾向にある。これは、薬品の画像の輪郭は画素間の変化量が大きく、視覚的に濃淡が明確である(処理画像上では視覚的に白くなる)からである。このため、ステップS508で正常な薬品を判別する輪郭エッジ輝度の閾値Thは高くしている。これに対し、対象領域が薬品以外の場合、輪郭エッジの輝度値の平均値は低くなる傾向にある。これは、汚れ・ゴミ等の輪郭は視覚的に濃淡が不鮮明である(処理画像上では視覚的に黒くなる)からである。このため、ステップS515で汚れ・ゴミを判別する輪郭エッジ輝度の閾値Th2はThよりも低くしている。 The threshold value Th in step S508 and the second threshold value Th2 in step S515 have a relationship of 255> Th> Th2> 0. When the target area obtained by the edge treatment is a chemical, the average value of the brightness values of the contour edges tends to be high. This is because the contour of the chemical image has a large amount of change between pixels and the shading is visually clear (it becomes visually white on the processed image). Therefore, in step S508, the threshold value Th of the contour edge brightness for discriminating a normal chemical is increased. On the other hand, when the target area is other than chemicals, the average value of the brightness values of the contour edges tends to be low. This is because the contours of dirt, dust, etc. are visually unclear in shades (they are visually blackened on the processed image). Therefore, the threshold value Th2 of the contour edge brightness for discriminating dirt / dust in step S515 is lower than Th.

以上の薬品領域抽出処理により、画像が「正常」、「複数薬剤」、「汚れ・ゴミ」、「薬品なし」と判断することができる。 By the above chemical region extraction process, it can be determined that the image is "normal", "multiple chemicals", "dirt / dust", and "no chemicals".

図42のフローに戻ると、ステップS403で、ステップS402の「薬品領域抽出処理」が成功したか否かを判断する。ステップS402の「薬品領域抽出処理」が成功せず、画像が「複数薬剤」、「汚れ・ゴミ」、「薬品なし」のいずれかであれば、形状解析を終了する。ステップS402の「薬品領域抽出処理」が成功し、画像が「正常」であると判断されたのであれば、ステップS404に移行し、「正常」であるか否かを再度詳細に判断する。 Returning to the flow of FIG. 42, in step S403, it is determined whether or not the “chemical region extraction process” of step S402 was successful. If the "chemical region extraction process" in step S402 is not successful and the image is any of "multiple chemicals", "dirt / dust", and "no chemicals", the shape analysis is terminated. If the "chemical region extraction process" in step S402 is successful and the image is determined to be "normal", the process proceeds to step S404, and it is determined again in detail whether or not the image is "normal".

ステップS404では、画像が立っているか否かを判断し、立っていれば画像は「薬品立つ」であるとして、形状解析を終了する。立っていなければ、ステップS405で、画像の寸法を測定し、画像の幅、長さ、頭部の向き等を決定する。次に、ステップS406で、画像が解析範囲ARからはみ出しているか否かを判断し、はみ出していなければ、ステップS407で画像が複数か否かを判断する。ここでは、複数の画像が接触して繋がっているか否かをステップS405で測定した寸法に基づいて判断する。画像が複数であれば、画像は「複数薬品」であるとして、形状解析を終了する。画像が複数でなければ、ステップS408で薬品が割れているか否かを判断する。薬品が割れていれば、画像は「薬品割れ」であるとして、形状解析を終了する。薬品が割れていなければ、ステップS409で薬品が異形状、例えば袋入りの薬品であるか否かを判断する。薬品が異形状でなければ、ステップS412で「吸着座標、オフセット」の決定処理を行う。薬品が割れているか否か、薬品が異形状であるか否かは、ステップS405で測定した寸法に基づいて判断する。 In step S404, it is determined whether or not the image is standing, and if it is standing, the image is regarded as "chemical standing" and the shape analysis is terminated. If not standing, the dimensions of the image are measured in step S405 to determine the width, length, head orientation, and the like of the image. Next, in step S406, it is determined whether or not the image is out of the analysis range AR, and if it is not, it is determined in step S407 whether or not there are a plurality of images. Here, it is determined whether or not a plurality of images are in contact with each other and connected based on the dimensions measured in step S405. If there are a plurality of images, the image is regarded as "multiple chemicals" and the shape analysis is terminated. If there are not a plurality of images, it is determined in step S408 whether or not the chemical is cracked. If the chemical is cracked, the image is regarded as "chemical crack" and the shape analysis is terminated. If the chemical is not cracked, step S409 determines whether the chemical has an irregular shape, for example, a bag. If the chemical has no irregular shape, the process of determining "adsorption coordinates and offset" is performed in step S412. Whether or not the chemical is cracked and whether or not the chemical has an irregular shape is determined based on the dimensions measured in step S405.

「吸着座標、オフセット」の決定処理は、図44に示すように、ステップS601で、2値化・エッジ処理された薬剤の画像の位置が撮影領域の中央でかつ水平になるように画像をアフィン変換する。ステップS602で、画像を垂直方向に縮小し、ステップS603で縮小前の画像と縮小後の画像の差分領域を求め、ステップS604で画像を水平方向にオープニング処理し、画像の小さい部分や細い部分を除去し、首部分の2本の像からなる領域と、胴部分の2本の像からなる領域とに分離する。ステップS605で、長い方の領域を選択して、ステップS606で逆アフィン変換し、ステップS607で残った長い方の領域の2本の像の合集合の中心座標を吸着座標とする。ステップS608では、吸着座標と頭部輪郭中心点との距離をオフセットとする。 As shown in FIG. 44, the process of determining the “adsorption coordinates and offset” is performed by affine the image so that the position of the image of the binarized / edge-processed drug is in the center of the imaging region and is horizontal in step S601. Convert. In step S602, the image is reduced in the vertical direction, in step S603, the difference area between the image before reduction and the image after reduction is obtained, and in step S604, the image is opened horizontally, and a small part or a thin part of the image is removed. It is removed and separated into a region consisting of two images of the neck portion and a region consisting of two images of the body portion. In step S605, the longer region is selected, inverse affine transformation is performed in step S606, and the center coordinates of the union of the two images of the longer region remaining in step S607 are set as the adsorption coordinates. In step S608, the distance between the suction coordinates and the center point of the head contour is used as an offset.

図42のフローに戻ると、ステップS411で、薬品が異形状であるか否かを再確認し、異形状でなければ、ステップS412で画像の角度をラジアンから度に変換する。ステップS413で、はみ出しフラグfが真(truth)、すなわちステップS406の判断で画像が解析範囲ARからはみ出していると判断されて、はみ出しフラグfが立っていれば、薬品が「はみ出し(範囲外薬剤)」であるとして形状解析を終了する。ステップS413ではみ出しフラグが立っていなければ、ステップS414で、薬剤が解析範囲ARの中心からずれているか否か判断し、中心からずれていれば、薬品が「中心ずれ」であるとして形状解析を終了する。中心からずれていなければ、ステップS415で異形状フラグfが立っているか否かを判断し、フラグが立っていれば、薬品が「異形状」であるとして形状解析を終了する。異形状フラグが立っていなければ、形状解析を終了する。 Returning to the flow of FIG. 42, in step S411, it is reconfirmed whether or not the chemical has an irregular shape, and if it is not irregular, the angle of the image is converted from radians to degrees in step S412. In step S413, if the protrusion flag f is true (truth), that is, it is determined in step S406 that the image is out of the analysis range AR, and the protrusion flag f is set, the drug is "protruded (out-of-range drug). ) ”, And the shape analysis is completed. If the protrusion flag is not set in step S413, it is determined in step S414 whether or not the drug is deviated from the center of the analysis range AR, and if it is deviated from the center, the shape analysis is performed assuming that the drug is “centered”. finish. If it is not deviated from the center, it is determined in step S415 whether or not the irregular shape flag f is set, and if the flag is set, the chemical is regarded as having an "odd shape" and the shape analysis is terminated. If the irregular shape flag is not set, the shape analysis is terminated.

ステップS406で、画像が解析範囲ARからはみ出していれば、ステップS416で、吸着座標及びオフセットを薬品の中心点に設定する。同様に、ステップS409で、薬品が異形状、例えば袋入りの薬品であれば、ステップS416で、吸着座標及びオフセットを薬品の中心点に設定する。これは、画像が解析範囲ARからはみ出していたり、薬品が異形状の場合は、返品薬剤を非格納薬剤配置部400に移送するので、吸着座標やオフセットを正確に求める必要がなく、薬剤の中心点に定めればよいからである。ステップS416の後は、前述したステップS412からS415を経て形状解析を終了する。 If the image is out of the analysis range AR in step S406, the adsorption coordinates and the offset are set at the center point of the drug in step S416. Similarly, in step S409, if the chemical has an irregular shape, for example, a chemical in a bag, the adsorption coordinates and the offset are set at the center point of the chemical in step S416. This is because if the image is out of the analysis range AR or the drug has a deformed shape, the returned drug is transferred to the non-stored drug placement unit 400, so there is no need to accurately determine the adsorption coordinates or offset, and the center of the drug. This is because it should be set as a point. After step S416, the shape analysis is completed through the above-mentioned steps S412 to S415.

以上、上述の実施形態を挙げて本発明を説明したが、本発明はこれに限定されない。本発明は返品薬剤を対象とする薬剤認識装置に限定されない。つまり、受入部に供給される薬剤は、返品薬剤に限定されない。 Although the present invention has been described above with reference to the above-described embodiments, the present invention is not limited thereto. The present invention is not limited to the drug recognition device for the returned drug. That is, the drug supplied to the receiving unit is not limited to the returned drug.

1 返品薬剤供給装置
2 返品薬剤
2a 先端
2b 基端
2c 胴部
2d 頭部
2A アンプル
2B バイアル
2C 樹脂アンプル
3 ラベル
4 返品トレー
4a トレー本体
4b フランジ状部
5 格納トレー
5a トレー本体
5b フランジ状部
6 突条
7 配置溝
8 払出トレー
8a 電子ペーパ
9 段部
10 注射薬払出ライン
11 供給リフター
12 ラベルプリンタ
13 ボトル払出機
14 整列式払出機
15 冷所保存機又は特殊薬払出機
16 トレー排出ユニット
17 積上リフター
18a 電子ペーパ消去用アンテナ
18b 電子ペーパ書込み用アンテナ
100 受入部
101 ラック部材
101a レール溝 200 昇降部
201 直動ガイド
202 キャリッジ
203 テーブル
203a 底部
203b 側部
203c 端部
204 レール溝
205 直動ガイド
206 キャリッジ
207 フック
300 認識部
301 仮置き部(薬剤載置部)
302 ラベル読取部(薬剤載置部)
303 照明
304 カメラ
305 半透明板
305A ベースプレート
305B 位置決めプレート
305a 載置面
305b 突条部
305c 枠体
305d エアー吹き出し孔
305e ガード部
306 照明
307 カメラ(撮影部)
308 無端ベルト
309 ローラ
310 照明
311 カメラ(撮影部)
312 バーコードリーダ
313 包絡線
314 括れ部分
315 矩形領域
316a,316b 領域
317 ストッパ
317a オーバーハング面
317b 平面
317c エッジ部
400 非格納薬剤配置部(薬剤載置部)
401,402 非格納薬剤配置箱
500 格納部
501 直動ガイド
502 保持枠
503 直動ガイド
504 キャリッジ
505 リフト機構
600 払出部
601 搬送機構
602 入口
603 出口
700 直交型ロボット
701 吸着ノズル
702 吸着パッド
703 Y軸ビーム
704 キャリッジ
705 X軸ビーム
706 キャリッジ
707 ヘッド
708 昇降ロッド
709 ブラケット
710 ばね
800 スカラー型ロボット
801 吸着ノズル
802 吸着パッド
803 直動ガイド
804 キャリッジ
805 X軸ビーム
806 ベース
807 第1アーム
808 第2アーム
809 ヘッド
810 ブラケット
811 ばね
812 バーコードリーダ
820 有無検知センサ
900 サポートトレー
901 ロッド
1000 制御装置
1001 制御盤
1002 ディスプレイ
1003 撮影部
1003a 第1撮影部
1003b 第2撮影部(撮影部)
1003c 第3撮影部(撮影部)
1004a 第1演算制御部
1004b 第2演算制御部
1005a 第1移送部
1005b 第2移送部
1006 表示部
1007 2値化処理部
1008 認識処理部
1009 直交型ロボット駆動制御部
1010 画像処理部
1011 異常判定部(判別部)
1012 解析部(認識部)
1013 スカラー型ロボット駆動制御部
1101 ホーム画面
1102 エラーボタン
1103 エラー画面
1104 エラーコード番号
1105 エラー内容
1106 エラー画像
1107 識別マーク
1108 対処方法
1109 リスタートボタン
1110 閉じるボタン
1111 扉開錠ボタン
1112 ブザー停止ボタン
1113 扉開錠画面
1114 指示内容

1 Returned medicine supply device 2 Returned medicine 2a Tip 2b Base 2c Body 2d Head 2A Ampoule 2B Vial 2C Resin ampoule 3 Label 4 Return tray 4a Tray body 4b Flange 5 Storage tray 5a Tray body 5b Flange 6 Article 7 Arrangement groove 8 Dispensing tray 8a Electronic paper 9 steps 10 Injection drug dispensing line 11 Supply lifter 12 Label printer 13 Bottle dispensing machine 14 Aligned dispensing machine 15 Cold storage machine or special drug dispensing machine 16 Tray discharging unit 17 Loading Lifter 18a Electronic paper erasing antenna 18b Electronic paper writing antenna 100 Receiving part 101 Rack member 101a Rail groove 200 Elevating part 201 Linear guide 202 Carriage 203 Table 203a Bottom 203b Side 203c End 204 Rail groove 205 Linear guide 206 Carriage 207 Hook 300 Recognition unit 301 Temporary storage unit (drug loading unit)
302 Label reading unit (drug loading unit)
303 Lighting 304 Camera 305 Translucent plate 305A Base plate 305B Positioning plate
305a Mounting surface 305b Protruding part 305c Frame body 305d Air blowing hole 305e Guard part 306 Lighting 307 Camera (shooting part)
308 Endless belt 309 Roller 310 Lighting 311 Camera (shooting section)
312 Barcode reader 313 Envelope 314 Constricted part 315 Rectangular area 316a, 316b Area 317 Stopper 317a Overhang surface 317b Flat surface 317c Edge part 400 Non-stored drug placement part (drug placement part)
401, 402 Non-stored drug placement box 500 Storage part 501 Linear movement guide 502 Holding frame 503 Linear movement guide 504 Carriage 505 Lift mechanism 600 Discharge part 601 Transport mechanism 602 Inlet 603 Exit 700 Orthogonal robot 701 Suction nozzle 702 Suction pad 703 Y-axis Beam 704 Carriage 705 X-axis beam 706 Carriage 707 Head 708 Lifting rod 709 Bracket 710 Spring 800 Scalar robot 801 Suction nozzle 802 Suction pad 803 Linear guide 804 Carriage 805 X-axis beam 806 Base 807 1st arm 808 2nd arm 808 810 Bracket 811 Spring 812 Bar code reader 820 Presence / absence detection sensor 900 Support tray 901 Rod 1000 Control device 1001 Control panel 1002 Display 1003 Imaging unit 1003a 1st imaging unit 1003b 2nd imaging unit (photographing unit)
1003c 3rd shooting section (shooting section)
1004a 1st arithmetic control unit 1004b 2nd arithmetic control unit 1005a 1st transfer unit 1005b 2nd transfer unit 1006 Display unit 1007 2 Quantification processing unit 1008 Recognition processing unit 1009 Orthogonal robot drive control unit 1010 Image processing unit 1011 Abnormality determination unit (Discrimination section)
1012 Analysis unit (recognition unit)
1013 Scalar type robot drive control unit 1101 Home screen 1102 Error button 1103 Error screen 1104 Error code number 1105 Error details 1106 Error image 1107 Identification mark 1108 Remedy 1109 Restart button 1110 Close button 1111 Door unlock button 1112 Buzzer stop button 1113 Door Unlocking screen 1114 Instructions

Claims (5)

トレーから取り出した薬剤を載置する薬剤載置部と、
前記薬剤載置部に載置された薬剤を撮影する撮影部と、
前記撮影部で撮影された薬剤を認識する認識部とを備えた薬剤認識装置において、
前記撮影部で撮影された画像に基づいて異物又は薬剤があるか否かを判別する判別部を有し、
前記判別部は前記薬剤認識装置の電源立上げ時に前記画像中に異物又は薬剤があると判別すると異物又は薬剤を除去するように促すことを特徴とする薬剤認識装置。
A drug placement section on which the drug taken out of the tray is placed,
An imaging unit that photographs the drug placed on the drug placement unit,
In a drug recognition device provided with a recognition unit that recognizes a drug imaged by the imaging unit,
It has a discriminating unit that determines whether or not there is a foreign substance or a drug based on the image taken by the photographing unit.
The discriminating unit is a drug recognition device, characterized in that, when the power of the drug recognition device is turned on, if it is determined that there is a foreign substance or a drug in the image, the discriminating unit prompts the removal of the foreign substance or the drug.
トレーから取り出した薬剤を載置する薬剤載置部と、
前記薬剤載置部に載置された薬剤を撮影する撮影部と、
前記撮影部で撮影された薬剤を認識する認識部とを備えた薬剤認識装置において、
前記撮影部で撮影された画像に基づいて異物又は薬剤があるか否かを判別する判別部を有し、
前記判別部による判別処理を前記薬剤認識装置の電源立上げ時に実行することを特徴とする薬剤認識装置。
A drug placement section on which the drug taken out of the tray is placed,
An imaging unit that photographs the drug placed on the drug placement unit,
In a drug recognition device provided with a recognition unit that recognizes a drug imaged by the imaging unit,
It has a discriminating unit that determines whether or not there is a foreign substance or a drug based on the image taken by the photographing unit.
A drug recognition device, characterized in that a discrimination process by the discrimination unit is executed when the power supply of the drug recognition device is turned on.
前記判別部は前記画像の一部を抽出した抽出画像の有無に基づいて異物又は薬剤があるか否かを判別する請求項1又は2に記載の薬剤認識装置。 The drug recognition device according to claim 1 or 2, wherein the discrimination unit determines whether or not there is a foreign substance or a drug based on the presence or absence of an extracted image obtained by extracting a part of the image. 前記薬剤載置部の異物又は薬剤を取り除く旨の指示内容を表示する表示部を備える請求項1から3のいずれかに記載薬剤認識装置。 The drug recognition device according to any one of claims 1 to 3, further comprising a display unit for displaying an instruction content for removing a foreign substance or a drug in the drug placement unit. 前記表示部は、前記画像中の異物又は薬剤がある部分を識別する識別マークと、前記画像とから作成されるエラー画像を表示する請求項4に記載の薬剤認識装置。 The drug recognition device according to claim 4, wherein the display unit displays an error image created from the identification mark for identifying a portion having a foreign substance or a drug in the image and the image.
JP2020134719A 2016-03-08 2020-08-07 Drug recognition device Active JP6988965B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020134719A JP6988965B2 (en) 2016-03-08 2020-08-07 Drug recognition device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016045037A JP6750257B2 (en) 2016-03-08 2016-03-08 Drug recognition device
JP2020134719A JP6988965B2 (en) 2016-03-08 2020-08-07 Drug recognition device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2016045037A Division JP6750257B2 (en) 2016-03-08 2016-03-08 Drug recognition device

Publications (2)

Publication Number Publication Date
JP2020185446A JP2020185446A (en) 2020-11-19
JP6988965B2 true JP6988965B2 (en) 2022-01-05

Family

ID=79239712

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020134719A Active JP6988965B2 (en) 2016-03-08 2020-08-07 Drug recognition device

Country Status (1)

Country Link
JP (1) JP6988965B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3808581B2 (en) * 1997-03-25 2006-08-16 株式会社湯山製作所 Injection dispensing device
JP2004345837A (en) * 2003-05-26 2004-12-09 Central Uni Co Ltd Storage device for medical treatment
TWI485093B (en) * 2008-11-21 2015-05-21 Yuyama Mfg Co Ltd Lozenge delivery device
DE102010002317B4 (en) * 2010-02-24 2018-06-14 Apologistics Gmbh System and method for separating and picking articles
KR20180122044A (en) * 2011-04-28 2018-11-09 가부시키가이샤 유야마 세이사쿠쇼 Medicine checking device and apparatus for separately packaging medicines
JP5902022B2 (en) * 2012-04-06 2016-04-13 株式会社セントラルユニ Returned medicine sorting apparatus and returned medicine sorting method
JP6220679B2 (en) * 2014-01-08 2017-10-25 東芝テック株式会社 Information processing apparatus, store system, and program

Also Published As

Publication number Publication date
JP2020185446A (en) 2020-11-19

Similar Documents

Publication Publication Date Title
JP7307373B2 (en) Drug recognition device and drug sorting device provided with the same
JP7147925B2 (en) Drug sorting device and drug sorting method
JP6750257B2 (en) Drug recognition device
JP6988965B2 (en) Drug recognition device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200811

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200811

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210706

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210817

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211115

R150 Certificate of patent or registration of utility model

Ref document number: 6988965

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250