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
JP7690684B2 - OBJECT IDENTIFICATION DEVICE, OBJECT IDENTIFICATION METHOD, PROGRAM, AND RECORDING MEDIUM - Google Patents
[go: Go Back, main page]

JP7690684B2 - OBJECT IDENTIFICATION DEVICE, OBJECT IDENTIFICATION METHOD, PROGRAM, AND RECORDING MEDIUM - Google Patents

OBJECT IDENTIFICATION DEVICE, OBJECT IDENTIFICATION METHOD, PROGRAM, AND RECORDING MEDIUM Download PDF

Info

Publication number
JP7690684B2
JP7690684B2 JP2024511824A JP2024511824A JP7690684B2 JP 7690684 B2 JP7690684 B2 JP 7690684B2 JP 2024511824 A JP2024511824 A JP 2024511824A JP 2024511824 A JP2024511824 A JP 2024511824A JP 7690684 B2 JP7690684 B2 JP 7690684B2
Authority
JP
Japan
Prior art keywords
drug
image
type
group
objects
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
JP2024511824A
Other languages
Japanese (ja)
Other versions
JPWO2023189734A1 (en
JPWO2023189734A5 (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.)
Fujifilm Medical Co Ltd
Original Assignee
Fujifilm Medical Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Medical Co Ltd filed Critical Fujifilm Medical Co Ltd
Publication of JPWO2023189734A1 publication Critical patent/JPWO2023189734A1/ja
Publication of JPWO2023189734A5 publication Critical patent/JPWO2023189734A5/en
Application granted granted Critical
Publication of JP7690684B2 publication Critical patent/JP7690684B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61JCONTAINERS SPECIALLY ADAPTED FOR MEDICAL OR PHARMACEUTICAL PURPOSES; DEVICES OR METHODS SPECIALLY ADAPTED FOR BRINGING PHARMACEUTICAL PRODUCTS INTO PARTICULAR PHYSICAL OR ADMINISTERING FORMS; DEVICES FOR ADMINISTERING FOOD OR MEDICINES ORALLY; BABY COMFORTERS; DEVICES FOR RECEIVING SPITTLE
    • A61J3/00Devices or methods specially adapted for bringing pharmaceutical products into particular physical or administering forms
    • A61J3/06Devices or methods specially adapted for bringing pharmaceutical products into particular physical or administering forms into the form of pills, lozenges or dragees
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Chemical & Material Sciences (AREA)
  • Medicinal Chemistry (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Animal Behavior & Ethology (AREA)
  • Veterinary Medicine (AREA)
  • Public Health (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Pharmacology & Pharmacy (AREA)
  • Artificial Intelligence (AREA)
  • Computing Systems (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Description

本開示は、物体識別装置、物体識別方法及びプログラムに係り、特に画像から物体を識別する画像認識技術に関する。 The present disclosure relates to an object identification device, an object identification method and a program, and in particular to image recognition technology for identifying objects from images.

特許文献1には、鑑別を行いたい薬剤を薬剤撮影装置にセットして薬剤の撮影を行い、撮影された薬剤の画像のデータを基に、データベースを参照して薬剤の検索を行う薬剤鑑別ソフトウェアが記載されている。Patent document 1 describes drug identification software that places the drug to be identified in a drug imaging device, photographs the drug, and searches for the drug by referring to a database based on the data from the photographed drug image.

特許文献2には、服用1回分の1以上の錠剤が分包された分包紙の反射光画像および透過光画像を撮像する撮像工程と、反射光画像および透過光画像に基づき、反射光画像中の錠剤に対応する領域である錠剤領域を切り出す切り出し工程と、切り出し工程によって切り出された錠剤領域それぞれの寸法および色を、錠剤の形状および色に関するモデル情報と照合することによって、錠剤それぞれの種別を識別する第1識別工程と、錠剤の画像を含んだ学習用データを用いた機械学習が実行されることで生成された学習モデルに基づいて少なくとも、種別は異なるが特徴量の類似する類似錠剤についての種別を識別する第2識別工程と、を含むことを特徴とする錠剤検知方法が記載されている。Patent Document 2 describes a tablet detection method that includes an imaging step of capturing a reflected light image and a transmitted light image of a packaging paper in which one or more tablets for one dose are packaged; an excision step of excising a tablet region in the reflected light image, which is a region corresponding to the tablet, based on the reflected light image and the transmitted light image; a first identification step of identifying the type of each tablet by comparing the dimensions and color of each tablet region excised by the excision step with model information regarding the shape and color of the tablet; and a second identification step of identifying the types of at least similar tablets that are different types but have similar features, based on a learning model generated by executing machine learning using learning data including the tablet images.

特開2022-010060号公報JP 2022-010060 A 特開2018-027242号公報JP 2018-027242 A

錠剤の薬種を識別する場合、錠剤に付されている刻印や印字の文字及び/又は記号の情報を手がかりに薬剤の種類(薬種)を特定できるケースが多い。その一方で、カプセル薬剤や半錠等の薬剤は、撮影画像に薬種を特定するための文字記号情報が一部しか写っていない、あるいは、カプセルのかみ合わせや錠剤の分割のパターンが無数にあるなどの理由により、撮影画像に対するマスタ画像とのテンプレートマッチングや機械学習ベースの方法によって薬種を特定することが困難あるいは不可能である。つまり、薬剤は、刻印や印字を有する錠剤など、撮影された画像から画像認識技術によって薬剤の種類まで特定が可能な薬剤と、カプセル薬剤や半錠剤等のように、撮影された画像から薬剤の種類までを特定することが困難な薬剤とがあり得る。本明細書では、前者を「薬種特定可能薬剤」と呼び、後者を「薬種特定困難薬剤」と呼ぶ。また、刻印や印字によって薬剤に付される文字及び/又は記号を「文字記号」と表記する。When identifying the type of a tablet, the type of drug (drug type) can often be identified using the information on the characters and/or symbols engraved or printed on the tablet. On the other hand, for drugs such as capsule drugs and half tablets, it is difficult or impossible to identify the drug type by template matching between the master image and the captured image or machine learning-based methods because only a portion of the character and symbol information for identifying the drug type is captured in the captured image, or there are countless patterns of capsule interlocking and tablet division. In other words, there are drugs whose type can be identified from the captured image using image recognition technology, such as tablets with engraved or printed characters, and drugs whose type is difficult to identify from the captured image, such as capsule drugs and half tablets. In this specification, the former are called "drugs whose type can be identified" and the latter are called "drugs whose type is difficult to identify". In addition, letters and/or symbols attached to drugs by engraving or printing are referred to as "character symbols".

薬種特定可能薬剤は、撮影画像に基づき画像認識によって薬種まで特定することが期待される。一方、薬種特定困難薬剤の薬種を特定するには、例えば、撮影画像を拡大して、薬剤に付されている文字記号の情報をユーザに提示し、ユーザが部分的に視認できている文字記号を目視してテキスト入力又は音声入力することにより、刻印テキストマスタなどのデータベースに対して検索を行うなどの手法により薬種を特定できる場合がある。このように、薬種特定困難薬剤に関しては、薬種の特定に役立つ情報をユーザに提示して薬種特定作業を支援する手法が実用上有効であると考えられる。It is expected that the drug type of drugs that can be identified will be identified by image recognition based on the captured image. On the other hand, in order to identify the drug type of drugs that are difficult to identify, for example, the captured image may be enlarged and information on the character symbols attached to the drug may be presented to the user, and the user may visually check the character symbols that are partially visible and input the text or voice information, thereby searching a database such as an engraving text master, thereby making it possible to identify the drug type. In this way, with regard to drugs that are difficult to identify, a method that supports the drug type identification task by presenting the user with information useful for identifying the drug type is considered to be practically effective.

識別対象の薬剤を撮影する段階で薬種特定可能薬剤と、薬種特定困難薬剤とを分別して、薬種特定可能薬剤に限って撮影を行い、薬種特定可能薬剤の種類を識別するようにシステムを構築することも考えられる。It is also possible to construct a system that distinguishes between identifiable drugs and drugs with difficult drug identification methods at the stage of photographing the drugs to be identified, photographs only identifiable drugs, and identifies the type of identifiable drug.

しかしながら、薬学的観点、及びユーザビリティ観点からは、同一服用時点、同一調剤などの単位で複数の薬剤を一度に撮影し、まとめて薬種特定作業ができることが好ましい。However, from a pharmaceutical and usability perspective, it would be preferable to be able to photograph multiple medications at once, in units of the same dosage time or same dispensing, and to be able to identify the drug type all at once.

ところがそのように同一服用時点などの単位で撮影を行うと、必然的に1つの撮影画像には薬種特定困難薬剤と薬種特定可能薬剤とが混在することになり、個々の薬剤に対して薬種特定困難薬剤か薬種特定可能薬剤であるかを選択する必要がある。ユーザビリティの観点からは、可能な限りこの選択は薬種識別装置上で自動的に実行されるのが好ましい。また、この選択は、薬種識別装置上での一連の薬種特定作業フローの中で行われるのが好ましい。However, when photographs are taken in units such as the same time of ingestion, a single photographed image will inevitably contain a mixture of drugs that are difficult to identify and drugs that can be identified, making it necessary to select for each drug whether it is a drug that is difficult to identify or a drug that can be identified. From the viewpoint of usability, it is preferable that this selection be performed automatically on the drug type identification device as far as possible. It is also preferable that this selection be performed within a series of drug type identification work flows on the drug type identification device.

このような技術課題は、薬剤を識別する用途に限らず、様々な物体について画像から物体の種類を特定する場合に共通する課題として把握される。本明細書では、画像から物体の種類まで特定できる物体を「種類特定可能物体」といい、画像から物体の種類までは特定困難であるが物体が属するグループを特定できる物体を「種類特定困難物体」という。These technical issues are not limited to applications in identifying medicines, but are recognized as common issues when identifying the type of various objects from their images. In this specification, an object whose type can be identified from its image is referred to as an "identifiable type object," and an object whose type is difficult to identify from its image but whose group to which it belongs can be identified is referred to as an "difficult-to-identify type object."

本開示はこのような事情に鑑みてなされたもので、種類特定可能物体と種類特定困難物体とが混在し得る複数の物体が撮影された画像を用いて個々の物体の種類を特定することを可能にする物体識別装置、物体識別方法及びプログラムを提供することを目的とする。The present disclosure has been made in consideration of these circumstances, and aims to provide an object identification device, an object identification method, and a program that make it possible to identify the type of each object using an image of multiple objects, which may include a mixture of objects whose type can be identified and objects whose type is difficult to identify.

本開示の一態様に係る物体識別装置は、複数の物体が撮影された画像から物体を物体単位で検出する検出器と、検出器によって検出された物体のうち、画像から物体の種類まで特定できる種類特定可能物体については画像から物体の種類を推定し、画像から物体の種類までは特定困難であるが物体が属するグループを特定できる種類特定困難物体については画像からグループを推定する識別器と、識別器によりグループとして推定された物体について種類の特定につながるグループ特有の処理を行う処理部と、を備える。An object identification device according to one aspect of the present disclosure includes a detector that detects objects on an object-by-object basis from an image in which multiple objects are captured; a classifier that estimates the type of object from the image for type-identifiable objects among the objects detected by the detector, where the type of object can be identified from the image; and a classifier that estimates the group from the image for type-difficult objects where the type of object is difficult to identify from the image but the group to which the object belongs can be identified; and a processing unit that performs group-specific processing leading to the identification of the type of objects estimated as a group by the classifier.

本態様によれば、複数の物体が撮影された画像から物体が検出され、個々の物体について識別器による推定が行われる。画像から検出された物体が種類特定可能物体である場合は識別器によってその物体の種類が推定される。一方、画像から検出された物体が種類特定困難物体である場合は識別器によってその物体が属するグループが推定され、グループまで推定されている物体について物体の種類の特定に寄与するグループ特有の処理に移行して、種類の特定につなげる。According to this aspect, objects are detected from an image in which multiple objects are captured, and each object is estimated by a classifier. If an object detected from an image is an object whose type can be identified, the classifier estimates the type of the object. On the other hand, if an object detected from an image is an object whose type is difficult to identify, the classifier estimates the group to which the object belongs, and for objects whose groups have been estimated, the process proceeds to group-specific processing that contributes to identifying the type of object, leading to the identification of the type.

画像は、種類特定可能物体と種類特定困難物体とが混在している状態で撮影された画像であってもよい。The image may be an image captured in a state in which identifiable objects and difficult-to-identify objects are mixed.

種類特定困難物体は、複数のグループに分類され、それぞれのグループに対してグループ特有の処理が定められている構成であってもよい。 Objects whose types are difficult to identify may be classified into multiple groups, with group-specific processing defined for each group.

検出器は、種類特定可能物体と種類特定困難物体とを区別せずに物体単位でラベル付けした第1の訓練データを用いて機械学習により訓練された第1の学習済みモデルを含む構成であってもよい。The detector may be configured to include a first learned model trained by machine learning using first training data that is labeled on an object-by-object basis without distinguishing between objects whose type can be identified and objects whose type is difficult to identify.

識別器は、種類特定可能物体については物体の種類単位でラベル付けし、種類特定困難物体については物体が属するグループ単位でラベル付けした第2の訓練データを用いて機械学習により訓練された第2の学習済みモデルを含む構成であってもよい。The classifier may be configured to include a second learned model trained by machine learning using second training data in which objects whose types can be identified are labeled by object type, and objects whose types are difficult to identify are labeled by group to which the objects belong.

グループを識別するラベルは階層構造で定義されていてもよい。 Labels identifying groups may be defined in a hierarchical structure.

識別器への入力として、画像から検出器によって検出された物体の領域を物体単位で切り出した物体画像、物体画像から抽出された文字及び記号のうち少なくとも一方を含む文字記号抽出画像、物体の外形画像、及び物体のサイズ情報のうち少なくとも1つを用いる構成であってもよい。The input to the classifier may be at least one of an object image obtained by cutting out the area of an object detected by a detector from an image on an object-by-object basis, a character/symbol extraction image including at least one of characters and symbols extracted from the object image, an outline image of the object, and size information of the object.

識別器への入力として、さらに、物体画像の拡大又は縮小率を示す倍率情報を用いる構成であってもよい。 The input to the classifier may further include magnification information indicating the enlargement or reduction ratio of the object image.

グループ特有の処理は、推定されたグループ内で物体の種類を検索するための検索条件の入力を受け付ける画面を表示させる処理を含む構成であってもよい。 The group-specific processing may include processing to display a screen that accepts input of search conditions for searching for object types within the estimated group.

本開示の他の態様において、物体は薬剤であり、種類特定困難物体は、カプセル薬剤、無地薬剤、及び分割錠剤のうち少なくとも1つを含み、種類特定可能物体は、刻印又は印字を有する錠剤を含む構成であってもよい。In another aspect of the present disclosure, the object is a medicine, the difficult-to-identify object includes at least one of a capsule medicine, a plain medicine, and a divided tablet, and the identifiable object includes a tablet having an imprint or marking.

識別器への入力として、画像から検出器によって検出された薬剤の領域を薬剤単位で切り出した薬剤画像、薬剤画像から抽出された文字及び記号のうち少なくとも一方を含む文字記号抽出画像、薬剤の外形画像、及び薬剤のサイズ情報のうち少なくとも1つを用いる構成であってもよい。The input to the classifier may be at least one of a drug image obtained by cutting out the area of the drug detected by a detector from an image on a drug-by-drug basis, a character/symbol extraction image including at least one of characters and symbols extracted from the drug image, an image of the drug's outline, and size information of the drug.

本開示の他の態様に係る物体識別装置は、1つ以上のプロセッサと、1つ以上のプロセッサが実行するプログラムが記憶される1つ以上のメモリと、を備える物体識別装置であって、1つ以上のプロセッサは、複数の物体が撮影された画像から物体を物体単位で検出する検出処理と、検出処理によって検出された物体のうち、画像から物体の種類まで特定できる種類特定可能物体については画像から物体の種類を推定し、画像から物体の種類までは特定困難であるが物体が属するグループを推定できる種類特定困難物体については画像からグループを推定する識別処理と、識別処理によりグループとして推定された物体について種類の特定につながるグループ特有の処理に移行する処理と、を実行する。An object identification device according to another aspect of the present disclosure is an object identification device including one or more processors and one or more memories in which programs executed by the one or more processors are stored, and the one or more processors perform a detection process to detect objects on an object-by-object basis from an image in which a plurality of objects are photographed; a classification process to estimate the type of object from the image for type-identifiable objects whose type can be identified from the image among the objects detected by the detection process, and to estimate the group from the image for type-unidentifiable objects whose type is difficult to identify from the image but whose group to which the object belongs can be estimated; and a process to transition to group-specific processing leading to the identification of the type of objects estimated as a group by the classification process.

1つ以上のプロセッサは、種類特定可能物体と種類特定困難物体とを区別せずに物体単位でラベル付けした第1の訓練データを用いて機械学習により訓練された第1の学習済みモデルを含む検出器を用いて検出処理を実行する構成であってもよい。The one or more processors may be configured to perform the detection process using a detector including a first learned model trained by machine learning using first training data labeled on an object-by-object basis without distinguishing between objects whose type can be identified and objects whose type is difficult to identify.

1つ以上のプロセッサは、種類特定可能物体については物体の種類単位でラベル付けし、種類特定困難物体については物体が属するグループ単位でラベル付けした第2の訓練データを用いて機械学習により訓練された第2の学習済みモデルを含む識別器を用いて識別処理を実行する構成であってもよい。The one or more processors may be configured to perform the classification process using a classifier including a second learned model trained by machine learning using second training data in which objects whose types can be identified are labeled by object type, and objects whose types are difficult to identify are labeled by group to which the objects belong.

1つ以上のプロセッサは、画像から検出処理によって検出された物体の領域を切り出し、物体単位の物体画像を生成する処理を実行し、物体画像に基づいて識別処理を行う構成であってもよい。The one or more processors may be configured to extract from the image an area of an object detected by the detection process, perform a process of generating an object image on an object-by-object basis, and perform an identification process based on the object image.

本開示の他の態様において、物体は薬剤であり、種類特定困難物体は、カプセル薬剤、無地薬剤、及び分割錠剤のうち少なくとも1つを含み、種類特定可能物体は、刻印又は印字を有する錠剤を含み、グループ特有の処理は、推定されたグループ内で薬剤の種類を検索するための検索条件の入力を受け付ける画面を表示させる処理を含む構成であってもよい。In another aspect of the present disclosure, the object is a medicine, the difficult-to-identify object includes at least one of a capsule medicine, a plain medicine, and a divided tablet, the identifiable object includes a tablet having an engraving or marking, and the group-specific processing may include processing for displaying a screen that accepts input of search criteria for searching for a type of medicine within the estimated group.

本開示の他の態様において、薬剤に付された刻印又は印字が示す文字及び記号のうち少なくとも一方を含む文字記号情報と薬剤の種類とが紐付けされた第1のデータベースと、薬剤のマスタ画像が格納されている第2のデータベースと、を備え、1つ以上のプロセッサは、受け付けた検索条件に基づき第1のデータベース及び第2のデータベースのうち少なくとも一方を検索し、検索条件に該当する薬剤の候補を出力する構成であってもよい。In another aspect of the present disclosure, a first database is provided in which character/symbol information, including at least one of characters and symbols indicated by an engraving or marking on a medicine, is linked to the type of medicine, and a second database in which a master image of the medicine is stored, and one or more processors are configured to search at least one of the first database and the second database based on received search conditions and output candidate medicines that meet the search conditions.

1つ以上のプロセッサは、画像を表示させる撮影画像表示部と、識別処理の推定結果に基づく候補物体の情報を表示させる候補表示部と、を含む画面を表示させる処理を行う構成であってもよい。The one or more processors may be configured to perform processing to display a screen including a captured image display unit that displays an image, and a candidate display unit that displays information about candidate objects based on the estimated results of the classification process.

1つ以上のプロセッサは、候補表示部に表示させる候補物体が属するグループの情報を表示させる処理を行う構成であってもよい。The one or more processors may be configured to perform processing to display information about the group to which the candidate object to be displayed in the candidate display unit belongs.

1つ以上のプロセッサは、候補表示部に表示させる候補物体が属するグループを指定する指示を受け付け、受け付けた指示に従い、候補表示部の表示を制御する構成であってもよい。The one or more processors may be configured to receive an instruction specifying a group to which a candidate object to be displayed in the candidate display section belongs, and to control the display of the candidate display section in accordance with the received instruction.

本開示の他の態様において、カメラと、カメラによって撮影された画像及び画像から推定された物体に関する情報を表示するディスプレイと、を備える構成であってもよい。In another aspect of the present disclosure, the system may be configured to include a camera and a display that displays an image captured by the camera and information about the object estimated from the image.

本開示の他の態様に係る物体識別方法は、1つ以上のプロセッサが実行する物体識別方法であって、1つ以上のプロセッサが、複数の物体が撮影された画像から物体を物体単位で検出することと、検出された物体のうち、画像から物体の種類まで推定できる種類特定可能物体については画像から物体の種類を推定し、画像から物体の種類までは特定困難であるが物体が属するグループを特定できる種類特定困難物体については画像からグループを推定することと、グループとして推定された物体について種類の特定につながるグループ特有の処理を実行することと、を含む。An object identification method according to another aspect of the present disclosure is an object identification method executed by one or more processors, which includes detecting objects on an object-by-object basis from an image in which a plurality of objects are captured, estimating the type of an object from the image for type-identifiable objects among the detected objects, for which the type of object can be estimated from the image, estimating a group from the image for type-difficult objects for which the type of object is difficult to identify from the image but the group to which the object belongs can be identified, and performing group-specific processing that leads to identification of the type of objects estimated as a group.

本開示の他の態様に係るプログラムは、コンピュータに、複数の物体が撮影された画像から物体を物体単位で検出する機能と、検出された物体のうち、画像から物体の種類まで特定できる種類特定可能物体については画像から物体の種類を推定し、画像から物体の種類までは特定困難であるが物体が属するグループを特定できる種類特定困難物体については画像からグループを推定する機能と、グループとして推定された物体について種類の特定につながるグループ特有の処理を実行する機能と、を実現させる。 A program according to another aspect of the present disclosure provides a computer with the following functions: detect objects on an object-by-object basis from an image in which multiple objects are captured; estimate the type of object from the image for identifiable objects among the detected objects, where the type of object can be identified from the image; estimate the group from the image for difficult-to-identify objects, where the type of object is difficult to identify from the image but the group to which the object belongs can be identified; and perform group-specific processing that leads to the identification of the type of objects estimated as a group.

本開示によれば、種類特定可能物体と種類特定困難物体とが混在した状態で撮影された画像であっても画像内の個々の物体の種類を特定することが可能になる。 According to the present disclosure, it becomes possible to identify the type of individual objects in an image even when the image is captured in a state in which identifiable objects and difficult-to-identify objects are mixed.

図1は、スマートフォンの正面斜視図である。FIG. 1 is a front perspective view of a smartphone. 図2は、スマートフォンの背面斜視図である。FIG. 2 is a rear perspective view of the smartphone. 図3は、スマートフォンの電気的構成を示すブロック図である。FIG. 3 is a block diagram showing the electrical configuration of the smartphone. 図4は、インカメラの内部構成を示すブロック図である。FIG. 4 is a block diagram showing the internal configuration of the in-camera. 図5は、実施形態に係る薬種識別装置の機能構成を示すブロック図である。FIG. 5 is a block diagram showing a functional configuration of a drug type identification device according to an embodiment. 図6は、薬剤検出器と薬剤識別器とを含む薬種識別装置を実現するための機械学習による学習フェーズの概要を示すフローチャートである。FIG. 6 is a flowchart showing an overview of a learning phase by machine learning for realizing a drug type identification device including a drug detector and a drug identifier. 図7は、薬種特定可能薬剤についての教師データとして付与する識別コードの例を示す説明図である。FIG. 7 is an explanatory diagram showing an example of an identification code given as training data for a drug-type-identifiable medicine. 図8は、薬種特定困難薬剤について教師データとして付与する識別コードの例を示す説明図である。FIG. 8 is an explanatory diagram showing an example of an identification code that is assigned as training data to a drug whose drug type is difficult to identify. 図9は、カプセル薬剤について教師データとして付与する識別コードの他の例を示す説明図である。FIG. 9 is an explanatory diagram showing another example of an identification code given to a capsule medicine as training data. 図10は、無地薬剤について教師データとして付与する識別コードの他の例を示す説明図である。FIG. 10 is an explanatory diagram showing another example of an identification code that is assigned to a plain medicine as training data. 図11は、薬剤識別器に入力する情報の例を示す概念図である。FIG. 11 is a conceptual diagram showing an example of information to be input to the medicine identifier. 図12は、ニューラルネットワークへの入力情報の例を示す図である。FIG. 12 is a diagram showing an example of input information to the neural network. 図13は、ニューラルネットワークへの入力情報の他の例を示す図である。FIG. 13 is a diagram showing another example of input information to the neural network. 図14は、カプセルに識別記号が印字されているカプセル薬剤の場合における入力情報の例を示す図である。FIG. 14 is a diagram showing an example of input information in the case of a capsule medicine having an identification code printed on the capsule. 図15は、識別記号が無いカプセル薬剤の場合の入力情報の例を示す図である。FIG. 15 is a diagram showing an example of input information for a capsule medicine without an identification code. 図16は、半錠剤の場合の入力情報の例を示す図である。FIG. 16 is a diagram showing an example of input information in the case of a half tablet. 図17は、機械学習システムの機能的構成を示すブロック図である。FIG. 17 is a block diagram showing the functional configuration of the machine learning system. 図18は、実施形態に係る薬種識別装置の動作を示すフローチャートである。FIG. 18 is a flowchart showing the operation of the drug type identification device according to the embodiment. 図19は、実施形態に係る薬種識別装置の動作を示すフローチャートであり、図18のステップS15及びステップS16に適用されるループ処理の例を示す。FIG. 19 is a flowchart showing the operation of the drug type identification device according to the embodiment, and shows an example of the loop processing applied to steps S15 and S16 in FIG. 18. 図20は、タッチパネルディスプレイに表示される画面の例を示す図である。FIG. 20 is a diagram showing an example of a screen displayed on the touch panel display. 図21は、薬剤の領域編集を行う場合の画面表示の例を示す図である。FIG. 21 is a diagram showing an example of a screen display when editing a medicine region. 図22は、領域編集の操作方法の例を示す説明図である。FIG. 22 is an explanatory diagram showing an example of an operating method for editing an area. 図23は、薬剤についての識別を確定させた状態の画面表示の例を示す図である。FIG. 23 is a diagram showing an example of a screen display in a state where the identification of the medicine has been confirmed. 図24は、識別結果確認GUI(Graphical User Interface)の画面表示の例を示す図である。FIG. 24 is a diagram showing an example of a screen display of a recognition result confirmation GUI (Graphical User Interface). 図25は、候補一覧表示GUIの画面表示の例を示す図である。FIG. 25 is a diagram showing an example of a screen display of the candidate list display GUI. 図26は、刻印テキストGUIの画面表示の例を示す図である。FIG. 26 is a diagram showing an example of a screen display of the engraving text GUI. 図27は、カプセル検索GUIの画面表示の例を示す図である。FIG. 27 is a diagram showing an example of a screen display of a capsule search GUI. 図28は、無地薬剤検索GUIの画面表示の例を示す図である。FIG. 28 is a diagram showing an example of a screen display of a plain medicine search GUI. 図29は、分割錠剤検索GUIの画面表示の例を示す図である。FIG. 29 is a diagram showing an example of a screen display of a divided tablet search GUI. 図30は、典型的な薬剤の形状を表すアイコンの例を示す図である。FIG. 30 shows examples of icons representing typical shapes of medicines. 図31は、色の選択に用いられるアイコンの例を示す図である。FIG. 31 is a diagram showing examples of icons used for color selection. 図32は、実施形態に係る薬種識別装置において薬種特定困難薬剤の種類を特定するため機能的構成の例を示すブロック図である。FIG. 32 is a block diagram showing an example of a functional configuration for identifying the type of a drug whose drug type is difficult to identify in the drug type identification device according to the embodiment. 図33は、撮影補助装置の上面図である。FIG. 33 is a top view of the photography auxiliary device. 図34は、図33の34-34線における断面図である。FIG. 34 is a cross-sectional view taken along line 34-34 in FIG. 図35は、補助光源を取り外した状態の撮影補助装置の上面図である。FIG. 35 is a top view of the shooting assist device with the auxiliary light source removed. 図36は、他の実施形態に係る撮影補助装置の上面図である。FIG. 36 is a top view of a shooting assistance device according to another embodiment. 図37は、図36の37-37線における断面図である。FIG. 37 is a cross-sectional view taken along line 37-37 in FIG. 図38は、補助光源を取り外した状態の撮影補助装置の上面図である。FIG. 38 is a top view of the shooting assist device with the auxiliary light source removed. 図39は、照明装置の例を示す断面図である。FIG. 39 is a cross-sectional view showing an example of a lighting device. 図40は、基準マーカとして円形マーカを用いた薬剤載置台の上面図である。FIG. 40 is a top view of the medicine placing platform using a circular marker as the reference marker. 図41は、変形例に係る円形マーカを用いた薬剤載置台の上面図である。FIG. 41 is a top view of a medicine placing table using a circular marker according to a modified example. 図42は、外形が四角形の基準マーカの具体例を示す図である。FIG. 42 is a diagram showing a specific example of a reference marker having a rectangular outline. 図43は、他の変形例に係る円形マーカを用いた薬剤載置台の上面図である。FIG. 43 is a top view of a medicine placing table using a circular marker according to another modified example. 図44は、四角形の基準マーカの他の具体例を示す図である。FIG. 44 shows another specific example of a rectangular reference marker. 図45は、くぼみ構造を有する薬剤載置台の例を示す図である。FIG. 45 is a diagram showing an example of a medicine placing table having a recessed structure. 図46は、カプセル薬剤向けのくぼみ構造を有する薬剤載置台の例を示す図である。FIG. 46 is a diagram showing an example of a medicine placement platform having a recess structure for capsule medicine. 図47は、楕円形の錠剤向けのくぼみ構造を有する薬剤載置台の例を示す図である。FIG. 47 shows an example of a medicine placement platform having a recess structure for an oval tablet.

以下、添付図面に従って本発明の好ましい実施形態について詳説する。 A preferred embodiment of the present invention is described in detail below with reference to the attached drawings.

<実施形態に係る薬種識別装置の概要>
実施形態に係る薬種識別装置は、薬剤を撮影した画像から薬剤の種類(薬種)を識別する装置である。本実施形態では、薬種特定可能薬剤と薬種特定困難薬剤とが混在する状態で複数の薬剤が撮影されることが想定されているが、両者が混在しない場合あるいは1つの薬剤のみが撮影された場合であっても薬種識別装置は有効に機能し得る。
<Outline of drug type identification device according to the embodiment>
The drug type identification device according to the embodiment is a device for identifying the type (drug type) of a drug from an image of the drug. In the present embodiment, it is assumed that a plurality of drugs are photographed in a state in which a drug type identifiable drug and a drug type difficult to identify are mixed, but the drug type identification device can function effectively even when both are not mixed or when only one drug is photographed.

実施形態に係る薬種識別装置は、複数の薬剤を撮影した画像から個々の薬剤を検出し、検出された個々の薬剤に対して薬種特定困難薬剤であるか、薬種特定可能薬剤であるかを自動判別して、それぞれに適した薬種特定フローへ自動分岐して効率良く薬種の特定を行うことを可能とする。薬種識別装置は、一例として携帯端末装置に搭載される。携帯端末装置は、スマートフォン、携帯電話機、PHS(Personal Handy-phone System)、PDA(Personal Digital Assistant)、タブレット型コンピュータ端末、ノート型パーソナルコンピュータ端末、及び携帯型ゲーム機のうちの少なくとも1つを含む。以下では、スマートフォンのハードウェアとソフトウェアとによって実現される薬種識別装置を例に挙げ、図面を参照しつつ、詳細に説明する。The drug type identification device according to the embodiment detects each drug from an image of multiple drugs, automatically determines whether each detected drug is a drug with a difficult drug type or a drug with a drug type that can be identified, and automatically branches to an appropriate drug type identification flow for each drug, enabling efficient drug type identification. As an example, the drug type identification device is mounted on a mobile terminal device. The mobile terminal device includes at least one of a smartphone, a mobile phone, a PHS (Personal Handy-phone System), a PDA (Personal Digital Assistant), a tablet computer terminal, a notebook personal computer terminal, and a portable game machine. Below, a drug type identification device realized by the hardware and software of a smartphone is given as an example and will be described in detail with reference to the drawings.

〔スマートフォンの外観〕
図1は、実施形態に係る薬種識別装置として機能するカメラ付き携帯端末装置であるスマートフォン10の正面斜視図である。図1に示すように、スマートフォン10は、平板状の筐体12を有する。スマートフォン10は、筐体12の正面にタッチパネルディスプレイ14、スピーカ16、マイクロフォン18、及びインカメラ20を備えている。
[Appearance of the smartphone]
Fig. 1 is a front perspective view of a smartphone 10, which is a camera-equipped mobile terminal device that functions as a drug type identification device according to an embodiment. As shown in Fig. 1, the smartphone 10 has a flat housing 12. The smartphone 10 has a touch panel display 14, a speaker 16, a microphone 18, and an in-camera 20 on the front side of the housing 12.

タッチパネルディスプレイ14は、画像等を表示するディスプレイ部、及びディスプレイ部の前面に配置され、タッチ入力を受け付けるタッチパネル部を備える。ディスプレイ部は、例えばカラーLCD(Liquid Crystal Display)パネルである。The touch panel display 14 includes a display unit that displays images, etc., and a touch panel unit that is disposed in front of the display unit and accepts touch input. The display unit is, for example, a color LCD (Liquid Crystal Display) panel.

タッチパネル部は、例えば光透過性を有する基板本体の上に面状に設けられ、光透過性を有する位置検出用電極、及び位置検出用電極上に設けられた絶縁層を有する静電容量式タッチパネルである。タッチパネル部は、ユーザのタッチ操作に対応した2次元の位置座標情報を生成して出力する。タッチ操作は、タップ操作、ダブルタップ操作、フリック操作、スワイプ操作、ドラッグ操作、ピンチイン操作、及びピンチアウト操作を含む。The touch panel unit is, for example, a capacitive touch panel provided in a planar manner on a light-transmitting substrate body, and having light-transmitting position detection electrodes and an insulating layer provided on the position detection electrodes. The touch panel unit generates and outputs two-dimensional position coordinate information corresponding to a user's touch operation. Touch operations include a tap operation, a double tap operation, a flick operation, a swipe operation, a drag operation, a pinch-in operation, and a pinch-out operation.

スピーカ16は、通話時及び動画再生時に音声を出力する音声出力部である。マイクロフォン18は、通話時及び動画撮影時に音声が入力される音声入力部である。インカメラ20は、動画及び静止画を撮影する撮像装置である。The speaker 16 is an audio output unit that outputs audio during a call and when playing a video. The microphone 18 is an audio input unit to which audio is input during a call and when shooting a video. The in-camera 20 is an imaging device that captures videos and still images.

図2は、スマートフォン10の背面斜視図である。図2に示すように、スマートフォン10は、筐体12の背面にアウトカメラ22、及びライト24を備えている。アウトカメラ22は、動画及び静止画を撮影する撮像装置である。ライト24は、アウトカメラ22で撮影を行う際に照明光を照射する光源であり、例えばLED(Light Emitting Diode)により構成される。 Figure 2 is a rear perspective view of the smartphone 10. As shown in Figure 2, the smartphone 10 has an outer camera 22 and a light 24 on the rear of the housing 12. The outer camera 22 is an imaging device that captures videos and still images. The light 24 is a light source that emits illumination light when capturing images with the outer camera 22, and is composed of, for example, an LED (Light Emitting Diode).

さらに、図1及び図2に示すように、スマートフォン10は、筐体12の正面及び側面に、それぞれスイッチ26を備えている。スイッチ26は、ユーザからの指示を受け付ける入力部材である。スイッチ26は、指等で押下されるとオンとなり、指を離すとバネ等の復元力によってオフ状態となる押しボタン式のスイッチである。1 and 2, the smartphone 10 has switches 26 on the front and side of the housing 12. The switches 26 are input members that accept instructions from a user. The switches 26 are push-button switches that are turned on when pressed with a finger or the like and turned off when the finger is released by the restoring force of a spring or the like.

なお、筐体12の構成はこれに限定されず、折り畳み構造又はスライド機構を有する構成を採用してもよい。The configuration of the housing 12 is not limited to this, and a configuration having a folding structure or a sliding mechanism may also be adopted.

〔スマートフォンの電気的構成〕
スマートフォン10の主たる機能として、基地局装置と移動体通信網とを介した移動無線通信を行う無線通信機能を備える。
[Smartphone electrical configuration]
The smartphone 10 has, as its main function, a wireless communication function for performing mobile wireless communication with a base station device via a mobile communication network.

図3は、スマートフォン10の電気的構成を示すブロック図である。図3に示すように、スマートフォン10は、前述のタッチパネルディスプレイ14、スピーカ16、マイクロフォン18、インカメラ20、アウトカメラ22、ライト24、及びスイッチ26の他、CPU(Central Processing Unit)28、無線通信部30、通話部32、メモリ34、外部入出力部40、GPS受信部42、及び電源部44を有する。 Figure 3 is a block diagram showing the electrical configuration of the smartphone 10. As shown in Figure 3, the smartphone 10 has the aforementioned touch panel display 14, speaker 16, microphone 18, in-camera 20, out-camera 22, light 24, and switch 26, as well as a CPU (Central Processing Unit) 28, a wireless communication unit 30, a call unit 32, a memory 34, an external input/output unit 40, a GPS receiver unit 42, and a power supply unit 44.

CPU28は、メモリ34に記憶された命令を実行するプロセッサの一例である。CPU28は、メモリ34が記憶する制御プログラム及び制御データに従って動作し、スマートフォン10の各部を統括して制御する。CPU28は、無線通信部30を通じて音声通信及びデータ通信を行うために、通信系の各部を制御する移動通信制御機能と、アプリケーション処理機能を備える。The CPU 28 is an example of a processor that executes instructions stored in the memory 34. The CPU 28 operates according to the control program and control data stored in the memory 34, and controls each part of the smartphone 10. The CPU 28 has a mobile communication control function that controls each part of the communication system to perform voice communication and data communication through the wireless communication unit 30, and an application processing function.

また、CPU28は、動画、静止画、及び文字等をタッチパネルディスプレイ14に表示する画像処理機能を備える。この画像処理機能により、静止画、動画、及び文字等の情報が視覚的にユーザに伝達される。また、CPU28は、タッチパネルディスプレイ14のタッチパネル部からユーザのタッチ操作に対応した2次元の位置座標情報を取得する。さらに、CPU28は、スイッチ26からの入力信号を取得する。The CPU 28 also has an image processing function for displaying moving images, still images, text, etc. on the touch panel display 14. This image processing function allows information such as still images, moving images, and text to be visually conveyed to the user. The CPU 28 also acquires two-dimensional position coordinate information corresponding to the user's touch operation from the touch panel portion of the touch panel display 14. The CPU 28 also acquires an input signal from the switch 26.

インカメラ20及びアウトカメラ22は、CPU28の指示に従って、動画及び静止画を撮影する。図4は、インカメラ20の内部構成を示すブロック図である。なお、アウトカメラ22の内部構成は、インカメラ20と共通している。図4に示すように、インカメラ20は、撮影レンズ50、絞り52、撮像素子54、AFE(Analog Front End)56、A/D(Analog to Digital)変換器58、及びレンズ駆動部60を有する。The in-camera 20 and the out-camera 22 capture video and still images according to instructions from the CPU 28. FIG. 4 is a block diagram showing the internal configuration of the in-camera 20. The internal configuration of the out-camera 22 is the same as that of the in-camera 20. As shown in FIG. 4, the in-camera 20 has a photographing lens 50, an aperture 52, an image sensor 54, an AFE (Analog Front End) 56, an A/D (Analog to Digital) converter 58, and a lens driver 60.

撮影レンズ50は、ズームレンズ50Z及びフォーカスレンズ50Fから構成される。レンズ駆動部60は、CPU28からの指令に応じて、ズームレンズ50Z及びフォーカスレンズ50Fを進退駆動して光学ズーム調整及びフォーカス調整を行う。また、レンズ駆動部60は、CPU28からの指令に応じて絞り52を制御し、露出を調整する。レンズ駆動部60は、後述するグレーの色に基づいてカメラの露光補正を行う露光補正部に相当する。ズームレンズ50Z及びフォーカスレンズ50Fの位置、絞り52の開放度等の情報は、CPU28に入力される。The photographing lens 50 is composed of a zoom lens 50Z and a focus lens 50F. The lens driving unit 60 drives the zoom lens 50Z and the focus lens 50F forward and backward in response to commands from the CPU 28 to perform optical zoom adjustment and focus adjustment. The lens driving unit 60 also controls the aperture 52 in response to commands from the CPU 28 to adjust exposure. The lens driving unit 60 corresponds to an exposure correction unit that performs exposure correction of the camera based on the color gray, which will be described later. Information such as the positions of the zoom lens 50Z and the focus lens 50F and the opening degree of the aperture 52 is input to the CPU 28.

撮像素子54は、多数の受光素子がマトリクス状に配列された受光面を備える。ズームレンズ50Z、フォーカスレンズ50F、及び絞り52を透過した被写体光は、撮像素子54の受光面上に結像される。撮像素子54の受光面上には、R(赤)、G(緑)、及びB(青)のカラーフィルタが設けられている。撮像素子54の各受光素子は、受光面上に結像された被写体光をR、G、及びBの各色の信号に基づいて電気信号に変換する。これにより、撮像素子54は被写体のカラー画像を取得する。撮像素子54としては、CMOS(Complementary Metal-Oxide Semiconductor)、又はCCD(Charge-Coupled Device)等の光電変換素子を用いることができる。The image sensor 54 has a light receiving surface on which a large number of light receiving elements are arranged in a matrix. The subject light transmitted through the zoom lens 50Z, the focus lens 50F, and the aperture 52 is imaged on the light receiving surface of the image sensor 54. R (red), G (green), and B (blue) color filters are provided on the light receiving surface of the image sensor 54. Each light receiving element of the image sensor 54 converts the subject light imaged on the light receiving surface into an electrical signal based on the R, G, and B color signals. In this way, the image sensor 54 acquires a color image of the subject. The image sensor 54 can be a photoelectric conversion element such as a CMOS (Complementary Metal-Oxide Semiconductor) or a CCD (Charge-Coupled Device).

AFE56は、撮像素子54から出力されるアナログ画像信号のノイズ除去、及び増幅等を行う。A/D変換器58は、AFE56から入力されるアナログ画像信号を階調幅があるデジタル画像信号に変換する。なお、撮像素子54への入射光の露光時間を制御するシャッターは、電子シャッターが用いられる。電子シャッターの場合、CPU28によって撮像素子54の電荷蓄積期間を制御することで、露光時間(シャッタースピード)を調節することができる。The AFE 56 performs noise removal and amplification of the analog image signal output from the image sensor 54. The A/D converter 58 converts the analog image signal input from the AFE 56 into a digital image signal with a range of gradations. An electronic shutter is used as the shutter that controls the exposure time of the light incident on the image sensor 54. In the case of an electronic shutter, the exposure time (shutter speed) can be adjusted by controlling the charge accumulation period of the image sensor 54 by the CPU 28.

インカメラ20は、撮影した動画及び静止画の画像データをMPEG(Moving Picture Experts Group)又はJPEG(Joint Photographic Experts Group)等の圧縮した画像データに変換してもよい。The in-camera 20 may convert the captured video and still image data into compressed image data such as MPEG (Moving Picture Experts Group) or JPEG (Joint Photographic Experts Group).

図3の説明に戻り、CPU28は、インカメラ20及びアウトカメラ22が撮影した動画及び静止画をメモリ34に記憶させる。また、CPU28は、インカメラ20及びアウトカメラ22が撮影した動画及び静止画を無線通信部30又は外部入出力部40を通じてスマートフォン10の外部に出力してもよい。Returning to the explanation of FIG. 3, the CPU 28 stores the video and still images captured by the in-camera 20 and the out-camera 22 in the memory 34. The CPU 28 may also output the video and still images captured by the in-camera 20 and the out-camera 22 to the outside of the smartphone 10 via the wireless communication unit 30 or the external input/output unit 40.

さらに、CPU28は、インカメラ20及びアウトカメラ22が撮影した動画及び静止画をタッチパネルディスプレイ14に表示する。CPU28は、インカメラ20及びアウトカメラ22が撮影した動画及び静止画をアプリケーションソフトウェア内で利用してもよい。Furthermore, the CPU 28 displays the video and still images captured by the in-camera 20 and the out-camera 22 on the touch panel display 14. The CPU 28 may use the video and still images captured by the in-camera 20 and the out-camera 22 within application software.

なお、CPU28は、アウトカメラ22による撮影の際に、ライト24を点灯させることで被写体に撮影補助光を照射してもよい。ライト24は、ユーザによるタッチパネルディスプレイ14のタッチ操作、又はスイッチ26の操作によって点灯及び消灯が制御されてもよい。In addition, when capturing an image with the outer camera 22, the CPU 28 may illuminate the subject with auxiliary light by turning on the light 24. The light 24 may be turned on and off by the user's touch operation on the touch panel display 14 or by operating the switch 26.

無線通信部30は、CPU28の指示に従って、移動通信網に収容された基地局装置に対し無線通信を行う。スマートフォン10は、この無線通信を使用して、音声データ及び画像データ等の各種ファイルデータ、電子メールデータ等の送受信、Web(World Wide Webの略称)データ及びストリーミングデータ等の受信を行う。The wireless communication unit 30 performs wireless communication with a base station device accommodated in the mobile communication network in accordance with instructions from the CPU 28. Using this wireless communication, the smartphone 10 transmits and receives various file data such as voice data and image data, e-mail data, and receives Web (abbreviation for World Wide Web) data and streaming data.

通話部32は、スピーカ16及びマイクロフォン18が接続される。通話部32は、無線通信部30により受信された音声データを復号してスピーカ16から出力する。通話部32は、マイクロフォン18を通じて入力されたユーザの音声をCPU28が処理可能な音声データに変換してCPU28に出力する。The speaker 16 and microphone 18 are connected to the communication unit 32. The communication unit 32 decodes the voice data received by the wireless communication unit 30 and outputs it from the speaker 16. The communication unit 32 converts the user's voice input through the microphone 18 into voice data that can be processed by the CPU 28 and outputs it to the CPU 28.

メモリ34は、CPU28に実行させるための命令を記憶する。メモリ34は、スマートフォン10に内蔵される内部記憶部36、及びスマートフォン10に着脱自在な外部記憶部38により構成される。内部記憶部36及び外部記憶部38は、公知の格納媒体を用いて実現される。The memory 34 stores instructions to be executed by the CPU 28. The memory 34 is composed of an internal storage unit 36 built into the smartphone 10 and an external storage unit 38 that is detachable from the smartphone 10. The internal storage unit 36 and the external storage unit 38 are realized using known storage media.

メモリ34は、CPU28の制御プログラム、制御データ、アプリケーションソフトウェア、通信相手の名称及び電話番号等が対応付けられたアドレスデータ、送受信した電子メールのデータ、WebブラウジングによりダウンロードしたWebデータ、及びダウンロードしたコンテンツデータ等を記憶する。また、メモリ34は、ストリーミングデータ等を一時的に記憶してもよい。The memory 34 stores the control program of the CPU 28, control data, application software, address data associated with names and telephone numbers of communication partners, data of sent and received e-mails, web data downloaded by web browsing, downloaded content data, etc. The memory 34 may also temporarily store streaming data, etc.

外部入出力部40は、スマートフォン10に連結される外部機器とのインターフェースの役割を果たす。スマートフォン10は、外部入出力部40を介して通信等により直接的又は間接的に他の外部機器に接続される。外部入出力部40は、外部機器から受信したデータをスマートフォン10の内部の各構成要素に伝達し、かつスマートフォン10の内部のデータを外部機器に送信する。The external input/output unit 40 acts as an interface with external devices connected to the smartphone 10. The smartphone 10 is directly or indirectly connected to other external devices by communication or the like via the external input/output unit 40. The external input/output unit 40 transmits data received from external devices to each component inside the smartphone 10, and also transmits data inside the smartphone 10 to the external devices.

通信等の手段は、例えばユニバーサルシリアルバス(Universal Serial Bus:USB)、IEEE(Institute of Electrical and Electronics Engineers)1394、インターネット、無線LAN(Local Area Network)、Bluetooth(登録商標)、RFID(Radio Frequency Identification)、及び赤外線通信である。また、外部機器は、例えばヘッドセット、外部充電器、データポート、オーディオ機器、ビデオ機器、スマートフォン、PDA、パーソナルコンピュータ、及びイヤホンである。 The means of communication, etc., are, for example, Universal Serial Bus (USB), IEEE (Institute of Electrical and Electronics Engineers) 1394, the Internet, wireless LAN (Local Area Network), Bluetooth (registered trademark), RFID (Radio Frequency Identification), and infrared communication. The external device is, for example, a headset, an external charger, a data port, an audio device, a video device, a smartphone, a PDA, a personal computer, and an earphone.

GPS受信部42は、GPS衛星ST1,ST2,…,STnからの測位情報に基づいて、スマートフォン10の位置を検出する。 The GPS receiver unit 42 detects the position of the smartphone 10 based on positioning information from GPS satellites ST1, ST2, ..., STn.

電源部44は、不図示の電源回路を介してスマートフォン10の各部に電力を供給する電力供給源である。電源部44は、リチウムイオン二次電池を含む。電源部44は、外部のAC電源からDC電圧を生成するA/D変換部を含んでもよい。The power supply unit 44 is a power supply source that supplies power to each part of the smartphone 10 via a power supply circuit (not shown). The power supply unit 44 includes a lithium ion secondary battery. The power supply unit 44 may also include an A/D conversion unit that generates a DC voltage from an external AC power source.

このように構成されたスマートフォン10は、タッチパネルディスプレイ14等を用いたユーザからの指示入力により撮影モードに設定され、インカメラ20及びアウトカメラ22によって動画及び静止画を撮影することができる。The smartphone 10 configured in this manner can be set to a shooting mode in response to user input of instructions using the touch panel display 14 or the like, and can capture video and still images using the in-camera 20 and the out-camera 22.

スマートフォン10が撮影モードに設定されると、撮影スタンバイ状態となり、インカメラ20又はアウトカメラ22によって動画が撮影され、撮影された動画がライブビュー画像としてタッチパネルディスプレイ14に表示される。When the smartphone 10 is set to the shooting mode, it enters a shooting standby state, a video is captured by the in-camera 20 or the out-camera 22, and the captured video is displayed on the touch panel display 14 as a live view image.

ユーザは、タッチパネルディスプレイ14に表示されるライブビュー画像を視認して、構図を決定したり、撮影したい被写体を確認したり、撮影条件を設定したりすることができる。The user can visually view the live view image displayed on the touch panel display 14 to determine the composition, confirm the subject they want to capture, and set the shooting conditions.

スマートフォン10は、撮影スタンバイ状態においてタッチパネルディスプレイ14等を用いたユーザからの指示入力により撮影が指示されると、AF(Autofocus)及びAE(Auto Exposure)制御を行い、動画及び静止画の撮影及び記憶を行う。When the smartphone 10 is in a standby state for shooting and is instructed to shoot by a user inputting instructions using the touch panel display 14 or the like, the smartphone 10 performs AF (Autofocus) and AE (Auto Exposure) control, and shoots and stores videos and still images.

〔薬種識別装置の機能構成〕
図5は、スマートフォン10によって実現される薬種識別装置100の機能構成を示すブロック図である。薬種識別装置100は、プロセッサ102と、記憶装置104とを含む。プロセッサ102はCPU28を含む。プロセッサ102は、GPU(Graphics Processing Unit)を含んでもよい。記憶装置104は非一時的な有体物であるコンピュータ可読媒体であり、メモリ34を含む。プロセッサ102は、タッチパネルディスプレイ14と接続されている。タッチパネルディスプレイ14は、表示装置(ディスプレイ)として機能する表示部14Aと、タッチ操作による入力を受け付ける入力装置として機能する入力部14Bとを含む。
[Functional configuration of drug type identification device]
5 is a block diagram showing a functional configuration of the drug type identification device 100 realized by the smartphone 10. The drug type identification device 100 includes a processor 102 and a storage device 104. The processor 102 includes a CPU 28. The processor 102 may include a GPU (Graphics Processing Unit). The storage device 104 is a computer-readable medium that is a non-transient tangible entity, and includes a memory 34. The processor 102 is connected to a touch panel display 14. The touch panel display 14 includes a display unit 14A that functions as a display device (display) and an input unit 14B that functions as an input device that accepts input by touch operation.

薬種識別装置100は、画像取得部112、薬剤検出器114、領域修正部116、薬剤領域切出部118、薬剤識別器120、テキスト検索部122、表示制御部124、及び入力処理部126を含む。The drug type identification device 100 includes an image acquisition unit 112, a drug detector 114, an area correction unit 116, a drug area extraction unit 118, a drug identifier 120, a text search unit 122, a display control unit 124, and an input processing unit 126.

画像取得部112は、識別対象の薬剤が撮影された撮影画像を取得する。撮影画像は、例えばインカメラ20又はアウトカメラ22によって撮影された画像である。撮影画像は、無線通信部30、外部記憶部38、又は外部入出力部40を介して他の装置から取得した画像であってもよい。撮影画像は、複数の識別対象薬剤が含まれていてよい。複数の識別対象薬剤は、同じ薬種の識別対象薬剤に限定されず、それぞれ異なる薬種の識別対象薬剤であってもよい。本実施形態では、異種の薬剤が混在している状態で複数の薬剤を一度にまとめて(1画像として)撮影した画像を処理する態様を例に説明する。The image acquisition unit 112 acquires a captured image of the drug to be identified. The captured image is, for example, an image captured by the in-camera 20 or the out-camera 22. The captured image may be an image acquired from another device via the wireless communication unit 30, the external storage unit 38, or the external input/output unit 40. The captured image may include multiple drugs to be identified. The multiple drugs to be identified are not limited to drugs to be identified of the same drug type, and may be drugs to be identified of different drug types. In this embodiment, an example is described in which an image is processed in which multiple drugs are captured together at once (as one image) in a state in which different types of drugs are mixed.

撮影画像は、識別対象薬剤及びマーカが撮影された画像であってもよい。マーカは、例えば、ArUcoマーカ、円形マーカ、又は四角形マーカなどであってよい。撮影画像内に複数のマーカが含まれていることが好ましい。複数のマーカは、例えば、薬剤載置範囲の矩形領域の四隅に配置される。撮影画像は、識別対象薬剤及び基準となるグレーの色が撮影された画像であってもよい。The captured image may be an image of the drug to be identified and a marker. The marker may be, for example, an ArUco marker, a circular marker, or a square marker. It is preferable that the captured image includes multiple markers. The multiple markers are arranged, for example, at the four corners of a rectangular area in the drug placement area. The captured image may be an image of the drug to be identified and a reference gray color.

撮影画像は、標準となる撮影距離及び撮影視点で撮影された画像であってもよい。撮影距離とは、識別対象薬剤及び撮影レンズ50の間の距離と撮影レンズ50の焦点距離とから表すことができる。また、撮影視点とは、マーカ印刷面と撮影レンズ50の光軸とが成す角度から表すことができる。The captured image may be an image captured at a standard shooting distance and shooting viewpoint. The shooting distance can be expressed by the distance between the drug to be identified and the shooting lens 50 and the focal length of the shooting lens 50. The shooting viewpoint can be expressed by the angle between the marker printing surface and the optical axis of the shooting lens 50.

画像取得部112は、不図示の画像補正部を含む。画像補正部は、撮影画像にマーカが含まれる場合に、マーカに基づいて撮影画像の撮影距離及び撮影視点の標準化を行って標準化画像を取得する。標準化画像は、撮影画像について標準化処理が施された後、四隅のマーカを頂点とする矩形の内側の領域が切り出された画像であってよい。例えば、画像補正部は、マーカによって座標を特定した四角形の4つの頂点が撮影距離及び撮影視点の標準化後に行く先の座標を指定する。画像補正部は、これら4つの頂点が、それぞれ指定した座標の位置に変換されるような透視変換行列を求める。このような透視変換行列は、4点あれば一意に定まる。例えば、OpenCV(Open Source Computer Vision Library)のgetPerspectiveTransform関数によって、4点の対応関係があれば変換行列を求めることができる。The image acquisition unit 112 includes an image correction unit (not shown). When a marker is included in the captured image, the image correction unit standardizes the shooting distance and shooting viewpoint of the captured image based on the marker to acquire a standardized image. The standardized image may be an image obtained by cutting out an area inside a rectangle whose vertices are the markers at the four corners after a standardization process is performed on the captured image. For example, the image correction unit specifies the coordinates of the four vertices of a rectangle whose coordinates are specified by the markers after standardization of the shooting distance and shooting viewpoint. The image correction unit obtains a perspective transformation matrix that transforms these four vertices into the positions of the specified coordinates. Such a perspective transformation matrix is uniquely determined if there are four points. For example, a transformation matrix can be obtained by the getPerspectiveTransform function of OpenCV (Open Source Computer Vision Library) if there is a correspondence between the four points.

画像補正部は、求めた透視変換行列を用いて、元の撮影画像の全体を透視変換し、変換後の画像を取得する。このような透視変換は、OpenCVのwarpPerspective関数を用いることで実行することができる。この変換後の画像が、撮影距離及び撮影視点が標準化された標準化画像であってよい。The image correction unit uses the obtained perspective transformation matrix to perform perspective transformation on the entire original captured image, and obtains the transformed image. Such perspective transformation can be performed using the warpPerspective function of OpenCV. This transformed image may be a standardized image in which the shooting distance and shooting viewpoint are standardized.

また、画像補正部は、撮影画像に基準となるグレーの色の領域が含まれる場合に、基準となるグレーの色に基づいて撮影画像の色調補正を行ってもよい。 In addition, when the captured image contains an area of a reference gray color, the image correction unit may perform color correction of the captured image based on the reference gray color.

薬剤検出器114は、機械学習によって訓練された学習モデルである第1学習済みモデルTM1を含む。第1学習済みモデルTM1は、いわゆる物体検出のタスクを行うように訓練されたモデルである。第1学習済みモデルTM1は、画像(標準化前画像又は標準化画像)を入力として与えると、検出した物体の領域に対応する位置情報、物体のクラス、及び物体の確からしさの確率を示すスコアを出力する。第1学習済みモデルTM1は本開示における「第1の学習済みモデル」の一例である。The drug detector 114 includes a first trained model TM1, which is a learning model trained by machine learning. The first trained model TM1 is a model trained to perform a so-called object detection task. When an image (pre-standardized image or standardized image) is given as input, the first trained model TM1 outputs position information corresponding to the area of the detected object, the object class, and a score indicating the probability of the object's likelihood. The first trained model TM1 is an example of a "first trained model" in this disclosure.

薬剤検出における物体のクラスは、少なくとも「薬剤」を含み、さらに「マーカ」を含んでもよい。薬剤検出器114は、画像取得部112が取得した撮影画像から薬剤を検出し、検出した薬剤の領域を示す情報を出力する。薬剤検出器114は、画像補正部によって標準化画像が取得された場合は、標準化画像から薬剤の領域を検出する。薬剤検出器114は、撮影画像に複数の薬剤が含まれている場合は、複数の薬剤のそれぞれの領域を検出する。The object class in drug detection includes at least "drug" and may further include "marker". Drug detector 114 detects drugs from the captured image acquired by image acquisition unit 112, and outputs information indicating the area of the detected drug. If a standardized image is acquired by the image correction unit, drug detector 114 detects the area of the drug from the standardized image. If the captured image contains multiple drugs, drug detector 114 detects the areas of each of the multiple drugs.

第1学習済みモデルTM1からの出力は、撮影画像内から検出された個々の薬剤の領域を示すバウンディングボックスの位置情報であってもよいし、個々の薬剤の領域を画素単位で塗りつぶしたセグメンテーションマスク画像であってもよい。第1学習済みモデルTM1を作成するための学習方法及び薬剤検出器114による検出処理の内容について詳細は後述する。薬剤検出器114は本開示における「検出器」の一例である。The output from the first trained model TM1 may be position information of a bounding box indicating the area of each drug detected within the captured image, or may be a segmentation mask image in which the area of each drug is filled in pixel by pixel. The training method for creating the first trained model TM1 and the contents of the detection process by the drug detector 114 will be described in detail below. The drug detector 114 is an example of a "detector" in this disclosure.

薬剤検出器114による検出処理の結果は、表示制御部124を介して表示部14Aに表示される。表示制御部124は、タッチパネルディスプレイ14における表示用の信号を生成し、表示制御を行う。表示制御部124は、表示部14Aに表示させる画像の表示倍率を変更する倍率変更部125を含む。タッチパネルディスプレイ14にてピンチアウト操作又はピンチイン操作が行われた場合など、表示倍率を変更する指示が入力されると、倍率変更部125は指示に応じて拡大又は縮小の処理を行う。入力処理部126は入力部14B又はマイクロフォン18からの入力を受け付け、受け付けた入力情報を対応する処理部へ送る。The results of the detection process by the drug detector 114 are displayed on the display unit 14A via the display control unit 124. The display control unit 124 generates a signal for display on the touch panel display 14 and controls the display. The display control unit 124 includes a magnification change unit 125 that changes the display magnification of the image to be displayed on the display unit 14A. When an instruction to change the display magnification is input, such as when a pinch-out or pinch-in operation is performed on the touch panel display 14, the magnification change unit 125 performs enlargement or reduction processing in accordance with the instruction. The input processing unit 126 accepts input from the input unit 14B or microphone 18, and sends the accepted input information to the corresponding processing unit.

領域修正部116は、薬剤検出器114が検出した薬剤の領域について、ユーザから修正の指示を受け付けて、受け付けた指示に応じて薬剤領域を修正する処理を行う。すなわち、領域修正部116は、入力部14Bから受け付けた領域修正の指示に従い、薬剤検出器114の検出結果に対して修正を加える。領域修正部116は、薬剤検出器114による誤検出あるいは検出漏れなどが発生した場合に、ユーザは入力部14Bから検出結果を修正する指示を入力して、識別対象の薬剤の正しい領域を指定することができる。The area correction unit 116 receives correction instructions from the user for the area of the drug detected by the drug detector 114, and performs processing to correct the drug area in accordance with the received instructions. That is, the area correction unit 116 makes corrections to the detection results of the drug detector 114 in accordance with the area correction instructions received from the input unit 14B. When an erroneous detection or missed detection occurs by the drug detector 114, the area correction unit 116 allows the user to input an instruction to correct the detection results from the input unit 14B and specify the correct area of the drug to be identified.

薬剤領域切出部118は、薬剤検出器114の検出結果に基づき撮影画像から薬剤ごとに薬剤領域を切り出す処理を行う。領域修正部116によって薬剤領域の修正が行われた場合、薬剤領域切出部118は、修正後の薬剤領域を切り出す処理を行う。The drug region extraction unit 118 performs processing to extract a drug region for each drug from the captured image based on the detection results of the drug detector 114. When the drug region is corrected by the region correction unit 116, the drug region extraction unit 118 performs processing to extract the corrected drug region.

薬剤識別器120は、機械学習によって訓練された学習モデルである第2学習済みモデルTM2を含む。第2学習済みモデルTM2は、いわゆる物体認識のタスクを行うように訓練されたモデルである。薬剤識別器120は、薬剤領域切出部118によって切り出されたそれぞれの薬剤の領域画像(以下、薬剤画像という。)を取得し、該当する薬剤の種類又は薬剤が属するグループを推定してラベル付け(すなわち、多クラス分類)を行う。薬剤識別器120が行うクラス分類は、入力された画像に写っている薬剤が薬種特定困難薬剤であるか、薬種特定可能薬剤であるかによって、分類の細かさ(粒度)が異なるものとなる。薬剤画像は本開示における「物体画像」の一例である。第2学習済みモデルTM2は本開示における「第2の学習済みモデル」の一例である。The drug identifier 120 includes a second trained model TM2, which is a learning model trained by machine learning. The second trained model TM2 is a model trained to perform a so-called object recognition task. The drug identifier 120 acquires an area image (hereinafter referred to as a drug image) of each drug cut out by the drug area cutout unit 118, estimates the type of the corresponding drug or the group to which the drug belongs, and performs labeling (i.e., multi-class classification). The class classification performed by the drug identifier 120 differs in fineness (granularity) of classification depending on whether the drug shown in the input image is a drug with a difficult drug type or a drug with a drug type that can be identified. The drug image is an example of an "object image" in this disclosure. The second trained model TM2 is an example of a "second trained model" in this disclosure.

薬剤識別器120は、入力された薬剤画像が薬種特定困難薬剤の画像である場合には、その薬剤が属するグループを推定して推定結果を出力する。薬種特定困難薬剤が属するグループとしては、例えば、「カプセル薬剤」、「分割錠剤」あるいは「無地薬剤」などの種類があり得る。また、グループの定義は、さらに細かくカテゴリー分けしてもよく、階層構造の分類によりサブグループを定義してもよい。例えば、「白色単色カプセル薬剤」、「赤白二色カプセル薬剤」、「半錠剤」、「四分の一錠剤」、「白色無地薬剤、又は「透明無地薬剤」などのようにグループを定めてもよい。When the input drug image is an image of a drug that is difficult to identify, the drug identifier 120 estimates the group to which the drug belongs and outputs the estimation result. Groups to which drugs that are difficult to identify may include, for example, "capsule drugs," "divided tablets," or "plain drugs." Groups may also be defined by further categorizing, or subgroups may be defined by a hierarchical classification. For example, groups may be defined as "single-color white capsule drugs," "two-color red and white capsule drugs," "half tablets," "quarter tablets," "plain white drugs," or "plain transparent drugs."

薬剤識別器120は、入力された薬剤画像が薬種特定可能薬剤の画像である場合には、その薬剤の種類(薬種)を識別して薬種の推定結果を出力する。薬剤識別器120によって出力させる薬種の識別情報は、例えば、薬種ごとに定義された固有の識別符号であってよい。第2学習済みモデルTM2を作成するための学習方法及び薬剤識別器120による識別処理の内容について詳細は後述する。薬剤識別器120は、推定した薬種に固有の識別符号から不図示の薬剤マスタデータベースを検索し、該当する薬剤又は類似する薬剤についての薬剤情報を取得する。薬剤識別器120は本開示における「識別器」の一例である。When the input drug image is an image of a drug with a drug type identifiable, the drug identifier 120 identifies the type (drug type) of the drug and outputs an estimation result of the drug type. The drug type identification information output by the drug identifier 120 may be, for example, a unique identification code defined for each drug type. The learning method for creating the second trained model TM2 and the contents of the identification process by the drug identifier 120 will be described in detail later. The drug identifier 120 searches a drug master database (not shown) from the identification code unique to the estimated drug type and acquires drug information on the corresponding drug or a similar drug. The drug identifier 120 is an example of an "identifier" in this disclosure.

薬剤識別器120による識別処理の結果は表示制御部124を介して表示部14Aに表示される。ユーザは表示部14Aに表示される識別結果を確認後、識別結果を確定させたり、識別結果を修正したり、あるいは、別途、テキスト検索を行うなどの対応が可能である。The results of the identification process by the drug identifier 120 are displayed on the display unit 14A via the display control unit 124. After checking the identification result displayed on the display unit 14A, the user can confirm the identification result, correct the identification result, or perform a separate text search.

テキスト検索部122は、入力部14B又はマイクロフォン18から検索キーの入力を受け付け、刻印テキストマスタのデータベース130にアクセスして該当する情報を検索し、検索結果を出力する。刻印テキストマスタは、様々な薬剤について刻印あるいは印字されている文字記号のテキスト情報と薬剤の種別とが紐付けされているデータを含む。データベース130に保存されている文字記号のテキスト情報は本開示における「文字記号情報」の一例である。The text search unit 122 accepts search key input from the input unit 14B or microphone 18, accesses the engraving text master database 130 to search for relevant information, and outputs the search results. The engraving text master contains data linking text information of character symbols engraved or printed on various drugs with the type of drug. The text information of character symbols stored in the database 130 is an example of "character symbol information" in this disclosure.

記憶装置104には、刻印デキストマスタのデータベース130と、各種の薬剤のマスタ画像を含むマスタ画像データベース131と、不図示の薬剤マスタデータベースとが保存されている。マスタ画像データベース131は、薬剤マスタデータベースに含まれていてもよい。刻印テキストマスタ、マスタ画像及び薬剤マスタ等のデータは、図示せぬグラウドサーバなど、ネットワーク上に保存されていてもよい。The storage device 104 stores a database 130 of engraving text masters, a master image database 131 including master images of various drugs, and a drug master database (not shown). The master image database 131 may be included in the drug master database. Data such as the engraving text master, master image, and drug master may be stored on a network such as a cloud server (not shown).

テキスト検索部122による検索結果は、表示制御部124を介して表示部14Aに表示される。また、マスタ画像データベース131から読み出されたマスタ画像は、表示制御部124を介して表示部14Aに表示される。The search results by the text search unit 122 are displayed on the display unit 14A via the display control unit 124. In addition, the master images read out from the master image database 131 are displayed on the display unit 14A via the display control unit 124.

ユーザは表示部14Aに表示される検索結果やマスタ画像を確認後、薬種の識別結果を確定させたり、さらなる絞り込み検索をしたり、あるいは、再検索を行うなどの対応が可能である。データベース130は本開示における「第1のデータベース」の一例である。マスタ画像データベース131は本開示における「第2のデータベース」の一例である。After checking the search results and master images displayed on display unit 14A, the user can confirm the drug type identification results, further narrow the search, or perform a new search. Database 130 is an example of a "first database" in this disclosure. Master image database 131 is an example of a "second database" in this disclosure.

記憶装置104は、識別結果記憶部132を含む。識別結果記憶部132は、薬剤識別器120による薬種の識別結果、及びテキスト検索部122による検索結果などを基に特定された薬種の識別結果などが記憶される記憶領域である。The storage device 104 includes an identification result storage unit 132. The identification result storage unit 132 is a storage area in which the identification results of drug types identified based on the drug identifier 120 and search results by the text search unit 122 are stored.

〔学習フェーズの説明〕
本実施形態に係る薬種識別装置100は、薬剤検出器114及び薬剤識別器120のそれぞれを次のように機械学習ベースで学習させ、これらを組み合わせて薬種識別装置100を構成する。図6は、薬剤検出器114と薬剤識別器120とを含む薬種識別装置100を実現するための機械学習による学習フェーズの概要を示すフローチャートである。
[Explanation of learning phase]
In the drug type identification device 100 according to this embodiment, each of the drug detector 114 and the drug identifier 120 is trained on a machine learning basis as follows, and these are combined to configure the drug type identification device 100. FIG. 6 is a flowchart showing an overview of the learning phase by machine learning for realizing the drug type identification device 100 including the drug detector 114 and the drug identifier 120.

図6に示す各ステップの処理は、例えば、コンピュータがプログラムを実行することによって実施され得る。薬種識別装置100を得るための機械学習方法は、薬剤検出器114の訓練に用いる訓練データを作成する工程(ステップS1:第1訓練データ作成工程)と、訓練データを用いて機械学習を行うことにより薬剤検出器114を訓練する工程(ステップS2:第1訓練工程)と、薬剤識別器120の訓練に用いる訓練データを作成する工程(ステップS3:第2訓練データ作成工程)と、訓練データを用いて機械学習を行うことにより薬剤識別器120を訓練する工程(ステップS4)と、ステップS2によって学習済みの薬剤検出器114とステップS4によって学習済みの薬剤識別器120とを用いて薬種識別装置100を構成する工程(ステップS5)と、を含む。 The processing of each step shown in FIG. 6 may be performed, for example, by a computer executing a program. The machine learning method for obtaining the drug type identification device 100 includes a step of creating training data used to train the drug detector 114 (step S1: first training data creation step), a step of training the drug detector 114 by performing machine learning using the training data (step S2: first training step), a step of creating training data used to train the drug identifier 120 (step S3: second training data creation step), a step of training the drug identifier 120 by performing machine learning using the training data (step S4), and a step of configuring the drug type identification device 100 using the drug detector 114 trained in step S2 and the drug identifier 120 trained in step S4 (step S5).

教師あり学習に用いられる訓練データは、入力用のデータと、正解のデータ(教師データ)とを含む。訓練データの作成には、入力用のデータに対応する正解のデータ(教師データ)を作成することが含まれる。 The training data used in supervised learning includes input data and correct answer data (teacher data). Creating training data includes creating correct answer data (teacher data) that corresponds to the input data.

薬剤検出器114を作成する処理(ステップS1、ステップS2)と、薬剤識別器120を作成する処理(ステップS3、ステップS4)とは、並列に実行されてもよいし、順次に実行されてもよい。各ステップ1~5の実行タイミングは、特に制限されず、連続的に実行されてもよいし、個々のステップの処理を別々の時期に、また別々のコンピュータを用いて実行してもよい。例えば、第1のコンピュータが薬剤検出器114を作成する処理(ステップS1、ステップS2)を実行し、第1のコンピュータと異なる第2のコンピュータが薬剤識別器120を作成する処理(ステップS3、ステップS4)を実行してもよい。また、第1のコンピュータが訓練データを作成する処理(ステップS1、S3)を実行し、第2のコンピュータが学習の処理(ステップS2、ステップS4)を実行してもよい。The process of creating the drug detector 114 (steps S1 and S2) and the process of creating the drug identifier 120 (steps S3 and S4) may be performed in parallel or sequentially. The execution timing of each step 1 to 5 is not particularly limited, and may be performed consecutively, or the process of each step may be performed at different times and using different computers. For example, a first computer may perform the process of creating the drug detector 114 (steps S1 and S2), and a second computer different from the first computer may perform the process of creating the drug identifier 120 (steps S3 and S4). In addition, the first computer may perform the process of creating training data (steps S1 and S3), and the second computer may perform the learning process (steps S2 and S4).

ステップS1では、訓練用の画像に対して、画像内に含まれる個々の薬剤の位置情報と、クラスとについて教師データ(正解データ)を付与する。教師データとして与える薬剤の位置情報は、薬剤を囲むバウンディングボックスの位置を特定する情報であってもよいし、薬剤の形状そのもので塗りつぶしたマスクであってもよい。また、教師データとして付与するクラスのラベルは、薬剤の種類(薬種)を問わず、一律に「薬剤」としてよい。つまり、薬種特定可能薬剤及び薬種特定困難薬剤の両者について、分類ラベルを全て同一の「薬剤」として付与する。In step S1, training images are assigned training data (correct answer data) for the position information and class of each drug contained in the image. The position information of the drug given as training data may be information specifying the position of a bounding box surrounding the drug, or may be a mask filled with the drug's shape itself. Furthermore, the class label assigned as training data may be uniformly set to "drug" regardless of the type (drug type). In other words, the classification label is assigned to both drugs whose drug type can be identified and drugs whose drug type is difficult to identify, all of which are assigned the same classification label of "drug".

[薬剤検出器114の学習]
薬剤検出器114では、入力された撮影画像から個々の薬剤の位置を特定して、薬剤領域を背景から分離し、切り出しを行うことを目的として物体位置情報と、クラス情報と、検出した物体(ここでは薬剤)の確からしさ等を推定する。物体位置情報は、例えば、「薬剤を囲む回転なしのバウンディングボックスの4点の頂点座標」、「薬剤を囲む回転なしのバウンディングボックスの中心座標、高さ、及び幅」、「薬剤を囲む回転ありのバウンディングボックスの中心座標、高さ、幅、及び回転角」、又は「薬剤の形状そのもので塗りつぶしたマスク」等であってよい。
[Training of Drug Detector 114]
The drug detector 114 estimates object position information, class information, and the likelihood of the detected object (here, drug) for the purpose of identifying the position of each drug from the input photographed image, separating the drug region from the background, and cutting out the drug. The object position information may be, for example, "four vertex coordinates of a bounding box surrounding the drug without rotation,""center coordinates, height, and width of a bounding box surrounding the drug without rotation,""center coordinates, height, width, and rotation angle of a bounding box surrounding the drug with rotation," or "a mask filled with the shape of the drug itself," etc.

薬剤は楕円体の形状のものが多く存在し、楕円体の薬剤が斜め方向に縦に並んだ場合には「薬剤を囲む回転なしのバウンディングボックス」だと一つのバウンディングボックスに複数の薬剤が含まれてしまうことがあるため、物体位置情報は、「薬剤を囲む回転ありのバウンディングボックスの中心座標、高さ、幅、及び回転角」又は「薬剤の形状そのもので塗りつぶしたマスク」が好ましい。Many medications are ellipsoidal in shape, and when ellipsoidal medications are arranged vertically at an angle, a single bounding box without rotation may contain multiple medications. Therefore, the object position information is preferably the center coordinates, height, width, and rotation angle of a rotated bounding box surrounding the medication, or a mask filled with the medication's shape itself.

ステップS2では、ステップS1によって作成された訓練データのデータセットを用いて薬剤検出器114に適用される学習モデル(以下、第1学習モデルという。)を訓練する機械学習が行われる。第1学習モデルは、例えば、ニューラルネットワークを用いて構成される。物体検出に好適なネットワークモデルとして、例えば、畳み込みニューラルネットワーク(Convolutional neural network:CNN)を用いることができる。薬剤検出器114は、画像の入力を受けて、画像内の個々の薬剤に対して物体位置情報を出力するように訓練される。In step S2, machine learning is performed to train a learning model (hereinafter referred to as a first learning model) to be applied to the drug detector 114 using the data set of training data created in step S1. The first learning model is configured using, for example, a neural network. As a network model suitable for object detection, for example, a convolutional neural network (CNN) can be used. The drug detector 114 is trained to receive an input of an image and output object position information for each drug in the image.

なお、薬剤検出器114によってマーカの検出も行う場合、第1学習モデルの訓練には、マーカの領域を正解データ(教師データ)として与えた訓練データを含むデータセットが必要である。薬剤検出器114の学習に用いる訓練データは本開示における「第1の訓練データ」の一例である。In addition, when the drug detector 114 also detects markers, a dataset including training data in which the marker area is given as correct answer data (teacher data) is required to train the first learning model. The training data used to train the drug detector 114 is an example of the "first training data" in this disclosure.

[薬剤識別器120の学習]
薬剤識別器120に対しては、個々の薬剤の画像単位で画像が入力され、薬剤の種類又は薬剤が属するグループのクラス情報と、識別したクラスの確からしさ等を推定するように訓練される。
[Learning of the drug identifier 120]
The drug identifier 120 is input with images of individual drugs, and is trained to estimate the type of drug or class information of the group to which the drug belongs, the likelihood of the identified class, and the like.

薬剤識別器120の訓練データを作成する際には、薬種特定可能薬剤については、各薬剤に定められた一意の識別コードを正解ラベルとして付与する。一方、薬種特定困難薬剤については、薬剤が属するグループに対して識別コードを付与する。例えば、薬種特定困難薬剤については、「カプセル薬剤」、「無地薬剤」、「半錠剤」、又は「4分の1錠剤」等、薬種特定フェーズで処理フローを分岐させたいグループ単位で正解ラベルを付与する。なお、「カプセル薬剤」について、さらに「硬カプセル薬剤」、「軟カプセル薬剤」などの細かいグループに分けて正解ラベルを付与してもよい。When creating training data for the drug identifier 120, for drugs whose drug type can be identified, a unique identification code defined for each drug is assigned as a correct label. On the other hand, for drugs whose drug type is difficult to identify, an identification code is assigned to the group to which the drug belongs. For drugs whose drug type is difficult to identify, for example, correct labels are assigned to groups in which the processing flow is to be branched in the drug type identification phase, such as "capsule drugs," "plain drugs," "half tablets," or "quarter tablets." Note that for "capsule drugs," correct labels may be assigned to smaller groups, such as "hard capsule drugs" and "soft capsule drugs."

グループに対する判別性能を高めるために、薬剤識別器120へ入力として、刻印抽出画像、薬剤の外形画像、及び薬剤のサイズ情報等のうち少なくとも1つ好ましくは複数を組み合わせて用いることが好ましい。刻印抽出画像とは、薬剤の刻印部又は印字部のみを抽出し、主に黒の背景の上に刻印部又は印字部を白で表した画像である。薬剤識別器120の学習に用いる訓練データは本開示における「第2の訓練データ」の一例である。In order to improve the discrimination performance for groups, it is preferable to use at least one, preferably a combination of a plurality of, as input to the drug identifier 120: an imprint extraction image, an image of the drug's outer shape, and drug size information. An imprint extraction image is an image in which only the imprinted or printed portion of a drug is extracted and the imprinted or printed portion is shown in white on a mainly black background. The training data used to train the drug identifier 120 is an example of the "second training data" in this disclosure.

図7は、薬種特定可能薬剤について教師データとして付与する識別コードの例を示す図である。薬種特定可能薬剤については、それぞれの薬剤に対して、薬種ごとに相異なる識別コードが付与される。図7中の「P000001」、「P000002」・・・「P009999」は、それぞれ異なる薬種に対応して一意に定義された識別コードの例を表している。図7に示す識別コードは本開示における「種類単位」のラベルの一例である。 Figure 7 is a diagram showing examples of identification codes assigned as training data to drug types that can be specified. For drug types that can be specified, a different identification code is assigned to each drug for each drug type. "P000001", "P000002", ... "P009999" in Figure 7 represent examples of identification codes that are uniquely defined to correspond to different drug types. The identification code shown in Figure 7 is an example of a "type unit" label in this disclosure.

図8は、薬種特定困難薬剤について教師データとして付与する識別コードの例を示す図である。薬種特定困難薬剤については、その薬剤が属するグループに対して識別コードを付与する。例えば、カプセル薬剤の画像に対しては、薬種によらず「カプセル薬剤」のグループを表す「G000001」の識別コードを付与する。また、無地薬剤の画像に対しては、薬種によらず「無地薬剤」のグループを表す「G000002」の識別コードを付与する。半錠剤(2分の1錠)の画像に対しては、薬種によらず「半錠剤」のグループを表す「G000003」の識別コードを付与する。4分の1錠剤の画像に対しては薬種によらず「4分の1錠剤」のグループを表す「G000004」の識別コードを付与する。なお、半錠剤と4分の1錠剤とを同じように取り扱いたい場合は、これらに対して同一の識別コードを付与してもよい。あるいはまた、半錠剤と4分の1錠剤とのそれぞれに別々の識別コードを付与し、プログラム側で「G000003」と「G000004」との識別コードに対して同一の処理を行ってもよい。 Figure 8 shows an example of an identification code to be assigned as training data for drugs that are difficult to identify. For drugs that are difficult to identify, an identification code is assigned to the group to which the drug belongs. For example, an image of a capsule drug is assigned an identification code of "G000001" that represents the group of "capsule drugs" regardless of the drug type. An image of a plain drug is assigned an identification code of "G000002" that represents the group of "plain drugs" regardless of the drug type. An image of a half tablet (half tablet) is assigned an identification code of "G000003" that represents the group of "half tablets" regardless of the drug type. An image of a quarter tablet is assigned an identification code of "G000004" that represents the group of "quarter tablets" regardless of the drug type. If half tablets and quarter tablets are to be treated in the same way, the same identification code may be assigned to them. Alternatively, separate identification codes may be assigned to the half tablets and quarter tablets, and the program may perform the same processing on the identification codes "G000003" and "G000004."

また、グループに対して付与する識別コードについては、階層構造によりグループを細かく分類したサブグループの識別コードを定義してもよい。 In addition, the identification code assigned to a group may be defined as an identification code for a subgroup that further classifies the group according to a hierarchical structure.

図9は、カプセル薬剤について教師データとして付与する識別コードの他の例を示す図である。例えば、カプセル薬剤について、カプセル色や印字文字色によって、より細かくグループ分けしておくことにより、薬剤識別器120の推論の精度向上が期待される。また、このような細かなグループ分けを行うことにより、カプセル検索の際に検索属性としてユーザビリティを向上するなど、鑑別処理に活用してもよい。図9においては、「カプセル薬剤」のグループにおいて、カプセル色が単色である場合と、2色の組み合わせである場合との分類(サブグループ)が定められた例が示されている。また、単色カプセルのグループに関しては、カプセルの色によってさらに分類分けされてよい。単色かつ白色のカプセル薬剤の画像に対しては、例えば、単色白色のカプセル薬剤のグループを表す「G000010」の識別コードを付与する。単色かつ青色のカプセル薬剤の画像に対しては、単色青色のカプセル薬剤のグループを表す「G000011」の識別コードを付与する。図9には示さないが、他の色の単色のカプセル薬剤の画像についても同様に、それぞれのグループを表す個別の識別コードを付与してよい。9 is a diagram showing another example of an identification code to be assigned as training data for capsule medicines. For example, by grouping capsule medicines more finely according to capsule color or printed character color, it is expected that the accuracy of inference by the medicine identifier 120 will be improved. In addition, by performing such fine grouping, it may be used in discrimination processing, such as improving usability as a search attribute when searching for capsules. In FIG. 9, an example is shown in which a classification (subgroup) is defined for a group of "capsule medicines" in which the capsule color is a single color and a combination of two colors. In addition, the group of single-color capsules may be further classified according to the color of the capsule. For an image of a single-color white capsule medicine, for example, an identification code of "G000010" representing a group of single-color white capsule medicines is assigned. For an image of a single-color blue capsule medicine, an identification code of "G000011" representing a group of single-color blue capsule medicines is assigned. Although not shown in FIG. 9, individual identification codes representing each group may be assigned to images of single-color capsule medicines of other colors in the same manner.

また、2色カプセルのグループに関しては、カプセルの色の組み合わせによってさらに分類分けされてよい。例えば、赤色と白色との2色のカプセル薬剤の画像に対しては、赤白2色のカプセル薬剤のグループを表す「G000100」の識別コードを付与する。青色と白色との2色のカプセル薬剤の画像に対しては、青白2色のカプセル薬剤のグループを表す「G000101」の識別コードを付与する。図9には示さないが、他の二色の組み合わせのカプセル薬剤の画像についても同様に、それぞれのグループを表す個別の識別コードを付与してよい。In addition, groups of two-color capsules may be further classified according to the combination of capsule colors. For example, an image of a two-color red and white capsule medicine is assigned an identification code of "G000100" representing a group of red and white capsule medicines. An image of a two-color blue and white capsule medicine is assigned an identification code of "G000101" representing a group of blue and white capsule medicines. Although not shown in FIG. 9, images of capsule medicines with other two-color combinations may also be assigned individual identification codes representing their respective groups.

図9では、カプセル薬剤の例を説明したが、無地錠剤についても同様に、色や形状によって細かくグループ分けして識別コードを付与してもよい。 Figure 9 illustrates an example of capsule medication, but plain tablets can also be divided into smaller groups based on color and shape and assigned identification codes.

図10は、無地薬剤について教師データとして付与する識別コードの他の例を示す図である。図10においては、無地薬剤の形状と色との組み合わせにより無地薬剤をさらに細かくグループ分けする場合の例を示す。図10では、無地薬剤の形状が円形である場合と、楕円体である場合との例が示されている。 Figure 10 shows another example of an identification code that is assigned as training data to plain medicines. Figure 10 shows an example of further grouping plain medicines according to a combination of their shape and color. Figure 10 shows examples of the case where the shape of the plain medicine is circular and the case where the shape is ellipsoidal.

図10のように、薬剤の形状が円形で、かつ薬剤の色が白色の無地薬剤の画像に対しては、例えば、円形白色の無地薬剤のグループを表す「G001001」の識別コードを付与する。薬剤の形状が円形で、かつ薬剤の色が黄色の無地薬剤の画像に対しては、円形黄色の無地薬剤のグループを表す「G001002」の識別コードを付与する。図10には示さないが、薬剤の形状が円形で、他の色の無地薬剤の画像についても同様に、それぞれのグループを表す個別の識別コードを付与してよい。As shown in Figure 10, an image of a plain, circular, white medicine is assigned an identification code of, for example, "G001001" to represent a group of plain, circular, white medicines. An image of a plain, circular, yellow medicine is assigned an identification code of "G001002" to represent a group of plain, circular, yellow medicines. Although not shown in Figure 10, images of plain, circular medicines of other colors may also be assigned individual identification codes to represent their respective groups.

また、薬剤の形状が楕円体で、かつ薬剤の色がオレンジ色の無地薬剤の画像に対しては、例えば、楕円体かつオレンジ色の無地薬剤のグループを表す「G002001」の識別コードを付与する。薬剤の形状が楕円体で、かつ薬剤の色が透明色の無地薬剤の画像に対しては、楕円体かつ透明色の無地薬剤のグループを表す「G002002」の識別コードを付与する。図10には示さないが、薬剤の形状が楕円体で、他の色の無地薬剤の画像についても同様に、それぞれのグループを表す個別の識別コードを付与してよい。また、図示しない形状と色との組み合わせの無地薬剤の画像についても同様に、それぞれのグループを表す個別の識別コードを付与してよい。 For an image of a plain drug whose shape is ellipsoidal and whose color is orange, for example, an identification code of "G002001" is assigned to indicate a group of plain drug whose shape is ellipsoidal and whose color is orange. For an image of a plain drug whose shape is ellipsoidal and whose color is transparent, an identification code of "G002002" is assigned to indicate a group of plain drug whose shape is ellipsoidal and whose color is transparent. Although not shown in FIG. 10, images of plain drug whose shape is ellipsoidal and whose color is other than ellipsoidal may be assigned individual identification codes to indicate their respective groups. For images of plain drug whose shape and color are not shown, individual identification codes to indicate their respective groups may be assigned.

[薬剤識別器120への入力情報について]
スマートフォン10を用いて様々な環境下で撮影を行う場合、撮影環境の影響により、色情報は必ずしも信頼できる情報源とならない場合がある。このため、薬種特定可能薬剤について薬剤単位で識別を行う場合には、色情報を排除した刻印抽出画像が重要になる場合が多い。薬剤識別器120においては、刻印抽出画像をより重視して識別を行うことが好ましい。元画像を入力し刻印抽出画像を出力する学習済みの機械学習モデルを使用し、元画像を入力し推論を行うことによって刻印抽出画像を取得してもよい。
[Information input to the drug identifier 120]
When taking pictures in various environments using the smartphone 10, color information may not necessarily be a reliable source of information due to the influence of the shooting environment. For this reason, when identifying a drug type-identifiable drug on a drug-by-drug basis, the stamp extraction image excluding color information is often important. It is preferable for the drug identifier 120 to place more importance on the stamp extraction image when making the identification. The stamp extraction image may be obtained by inputting the original image and performing inference using a trained machine learning model that inputs the original image and outputs the stamp extraction image.

その一方で、撮影環境の影響を大きく受けたとしても、非常に珍しい色の薬剤等、色情報が参考になる場合もあり得る。また、薬剤の形状情報も、撮影環境の影響を受けにくい頑健な情報源となり得る。薬剤の外形画像は、有用な形状情報となり得る。On the other hand, even if color information is significantly affected by the shooting environment, it may be useful in some cases, such as for drugs with very unusual colors. In addition, drug shape information can also be a robust source of information that is less affected by the shooting environment. Images of the drug's outline can be useful shape information.

また、非機械学習的な手法によって取得した薬剤の長径及び短径の大きさの情報(サイズ情報)も撮影環境の影響を受けにくい頑健な情報源となり得る。例えば、OpenCVなどを用いて、薬剤の長径及び短径を抽出し、その数値情報を用いることで撮影環境の影響を受け難い頑健な情報源となる。このように、撮影画像から薬剤ごとに計測されるサイズ情報は、薬種特定困難薬剤にとっても膨大な薬種を特定する重要な情報源となる。特に、識別記号等が印字されていないカプセル薬剤あるいは無地錠剤などの薬種特定困難薬剤にとっては、サイズ情報がグループ特定の非常に重要な情報源となり得る。 In addition, information on the major and minor axis sizes of drugs (size information) obtained by non-machine learning methods can also be a robust information source that is less susceptible to the effects of the imaging environment. For example, by extracting the major and minor axes of drugs using OpenCV or the like and using the numerical information, a robust information source that is less susceptible to the effects of the imaging environment can be obtained. In this way, size information measured for each drug from the captured image can be an important information source for identifying a huge number of drugs, even for drugs that are difficult to identify. In particular, for drugs that are difficult to identify, such as capsule drugs or plain tablets that do not have identification codes printed on them, size information can be a very important information source for group identification.

これらの事実を考慮すると、薬剤識別器120への入力としては、撮影画像から薬剤単位で切り出された領域画像(薬剤画像)である元画像と、元画像から抽出された刻印抽出画像と、外形画像と、サイズ情報とのうち1つ以上、好ましくは複数を組み合わせたものとすることが好ましい。なお、「刻印抽出画像」という用語は、刻印に限らず錠剤又はカプセルに付された印字を抽出した画像も含む。刻印抽出画像は文字記号抽出画像と言い換えてもよい。「刻印」という用語は、文脈から必要に応じて、錠剤又はカプセル薬剤についての「印字」、「印字記号」、「識別記号」又は「文字記号」などの概念を含む用語として理解してよい。Considering these facts, it is preferable that the input to the drug identifier 120 is a combination of one or more, preferably a combination of a source image, which is a region image (drug image) cut out on a drug-by-drug basis from a captured image, an imprint extraction image extracted from the source image, an outline image, and size information. The term "imprint extraction image" includes not only imprints but also images extracted from imprints on tablets or capsules. The imprint extraction image may be referred to as a character symbol extraction image. The term "imprint" may be understood as a term including concepts such as "printing," "printed symbol," "identification symbol," or "character symbol" on tablet or capsule drugs, as necessary from the context.

色情報を含む元画像、刻印抽出画像、外形画像、及びサイズ情報の全ての情報を組み合わせて薬剤識別器120に入力する構成であってもよいし、これらのうちの一部の情報を組み合わせて薬剤識別器120に入力する構成であってもよい。The configuration may be such that all of the information, i.e., the original image including color information, the engraving extraction image, the outline image, and the size information, is combined and input to the drug identifier 120, or the configuration may be such that only some of this information is combined and input to the drug identifier 120.

図11は、薬剤識別器120に入力する情報の例を示す概念図である。元画像Orgは、薬剤単位の薬剤画像であり、撮影画像から薬剤ごとに切り出された個々の薬剤画像に相当する。刻印抽出画像Egmは、元画像Orgから刻印を抽出した画像である。刻印抽出画像Egmは、抽出された刻印の視認性を高める強調処理を施した画像であってもよい。外形画像Otwは、元画像Orgから抽出された薬剤の外形を示す画像である。なお、外形画像Otwは、薬剤の厳密な輪郭を示すものに限らず、輪郭に準じた概形を示すものであってもよい。サイズ情報は、例えば、元画像Org又は外形画像Otwを基に、薬剤の長径及び短径を計測することによって得られる数値情報である。 Figure 11 is a conceptual diagram showing an example of information to be input to the drug identifier 120. The original image Org is a drug image per drug, and corresponds to an individual drug image cut out for each drug from the captured image. The imprint extraction image Egm is an image in which the imprint is extracted from the original image Org. The imprint extraction image Egm may be an image that has been subjected to an enhancement process to increase the visibility of the extracted imprint. The outline image Otw is an image showing the outline of the drug extracted from the original image Org. Note that the outline image Otw is not limited to one showing the exact outline of the drug, and may also show an approximate shape that conforms to the outline. The size information is, for example, numerical information obtained by measuring the major and minor axes of the drug based on the original image Org or the outline image Otw.

撮影環境に対して頑健なシステムを構築するために、これら複数の情報の組み合わせを薬剤識別器120への入力情報として用いる態様が好ましい。In order to build a system that is robust against the imaging environment, it is preferable to use a combination of these multiple pieces of information as input information to the drug identifier 120.

薬剤識別器120に適用される学習モデルは、例えば、ニューラルネットワークを用いて構成される。画像認識に好適なネットワークモデルとして、例えば、CNNを用いることができる。ニューラルネットワークへの入力として、元画像、刻印抽出画像、及び外形画像のうち2つ以上の画像の組み合わせを入力する場合、これら複数の画像をチャンネル方向に結合して入力する方式と、画像上(画像の面内)で横方向に結合ないし縦方向に結合して合成画像として入力する方式とがあり得る。The learning model applied to the drug identifier 120 is constructed, for example, using a neural network. As a network model suitable for image recognition, for example, CNN can be used. When a combination of two or more images of the original image, the stamp extraction image, and the outline image is input as input to the neural network, there are two possible methods: combining these multiple images in the channel direction and inputting them, or combining them horizontally or vertically on the image (within the plane of the image) and inputting them as a composite image.

ニューラルネットワークにおいては、入力画像サイズは固定値となる制約を受ける場合があるため、入力画像の方式として下記の2つの方式があり得る。 In neural networks, the input image size may be restricted to a fixed value, so there are two possible input image methods:

[方式1]第1の方式は、ニューラルネットワークの入力層が受け付ける入力画像サイズに合わせて画像を拡大又は縮小する方式である。図12に、第1の方式による入力情報の例を示す。[Method 1] The first method is a method in which an image is enlarged or reduced to match the input image size accepted by the input layer of the neural network. Figure 12 shows an example of input information using the first method.

第1の方式では、ニューラルネットワークが受け付ける入力画像サイズの上限まで各画像を拡大又は縮小して入力に投入する。この画像の拡大又は縮小の処理(以下、「リサイズ処理」という。)において使用した画像の拡大率又は縮小率の情報は、その後の処理で必要になった場合に備えて記憶しておく。第1の方式の場合、リサイズ処理に適用した倍率情報が記憶され、ニューラルネットワークの入力情報として、元画像Org1、刻印抽出画像Egm1、及び外形画像Otw1のうちの1つ以上の画像と、サイズ情報との組み合わせに加えて、必要に応じてリサイズ処理の倍率情報が用いられる。ここに示す元画像Org1は、撮影画像の標準化画像から切り出された薬剤単位の画像を、ニューラルネットワークの入力画像サイズに合わせてリサイズ処理したものである。また、元画像Org1から刻印を抽出する処理を行うことによって刻印抽出画像Egm1が得られる。元画像Org1から薬剤の外形を抽出する処理を行うことによって外形画像Otw1が得られる。In the first method, each image is enlarged or reduced to the upper limit of the input image size that the neural network can accept, and then input. The information on the image enlargement or reduction ratio used in this image enlargement or reduction process (hereinafter referred to as "resizing process") is stored in case it becomes necessary in subsequent processes. In the first method, the magnification information applied to the resizing process is stored, and as input information for the neural network, in addition to a combination of one or more images of the original image Org1, the stamp extraction image Egm1, and the outline image Otw1 and size information, the magnification information of the resizing process is used as necessary. The original image Org1 shown here is an image of a drug unit cut out from a standardized image of a captured image, which has been resized to match the input image size of the neural network. In addition, the stamp extraction image Egm1 is obtained by performing a process to extract the stamp from the original image Org1. The outline image Otw1 is obtained by performing a process to extract the outline of the drug from the original image Org1.

第1の方式によれば、例えば、小さい錠剤で刻印文字が小さい又は細かい場合に、画像が拡大されてニューラルネットワークに入力されるため推論(識別)精度が向上するという利点がある。また、第1の方式によれば、ニューラルネットワークの入力画像サイズを小さめに設計でき、実行時間の短縮が期待できる。つまり、世の中に実在する薬剤の最大のサイズに制約されず、ニューラルネットワークの入力画像サイズを認識性能に適切なサイズに設計できるため、無駄なデータの処理が抑制される。 According to the first method, for example, when the printed characters on a small tablet are small or fine, the image is enlarged and input to the neural network, which has the advantage of improving inference (recognition) accuracy. In addition, according to the first method, the input image size of the neural network can be designed to be small, which is expected to reduce execution time. In other words, since the input image size of the neural network can be designed to be appropriate for recognition performance without being restricted by the maximum size of drugs that actually exist in the world, the processing of unnecessary data is suppressed.

その一方で、第1の方式の場合、ニューラルネットワークの入出力時に画像のリサイズ処理等が行われる点で、処理が多少煩雑になる。また、後の処理(錠剤の大きさに比例した画像付きでユーザに薬剤識別結果を提示する場合等)で必要になる場合に備えて、拡大/縮小率の情報(倍率情報)を記憶しておく必要がある。On the other hand, in the case of the first method, image resizing and other processes are performed at the time of input and output of the neural network, which makes the process somewhat complicated. Also, it is necessary to store information on the enlargement/reduction rate (magnification information) in case it is required in later processes (such as when presenting the drug identification results to the user with an image proportional to the size of the tablet).

[方式2]第2の方式は、ニューラルネットワークの入力層が受け付ける入力画像サイズの画像中心位置に、そのままの画像サイズで(拡大/縮小処理を行わずに)画像を貼り付けて入力する方式である。この場合、ニューラルネットワークに対する入力画像サイズを予め決めておき、その受け入れ可能な入力画像サイズの入力層に、撮影画像の標準化画像から切り出した元画像と同じものを入力する。標準化された元画像は、実際の薬剤の大きさと対応関係が把握されている画像である。 [Method 2] The second method is to paste and input an image at its original size (without enlarging/reducing) at the center of the image of the input image size accepted by the input layer of the neural network. In this case, the input image size for the neural network is determined in advance, and the same original image cut out from the standardized image of the captured image is input to the input layer of the acceptable input image size. The standardized original image is an image whose correspondence with the actual size of the drug is understood.

図13に、第2の方式による入力情報の例を示す。第2の方式によれば、画像のリサイズ処理が不要である。したがって、第2の方式の場合、拡大/縮小率を示す倍率情報の入力も不要である。第2の方式では、ニューラルネットワークの入力情報として、元画像Org2、刻印抽出画像Egm2、及び外形画像Otw2のうちの1つ以上の画像と、サイズ情報との組み合わせを用いることができる。また、第2の方式では、元画像Org2から抽出される外形画像Otw2自体に実質的に薬剤の大きさを示す情報も含まれるため、外形画像Otw2を入力に用いる場合、長径及び短径の数値情報は必ずしも必要でないという利点がある。 Figure 13 shows an example of input information according to the second method. According to the second method, image resizing is not required. Therefore, in the case of the second method, input of magnification information indicating the enlargement/reduction ratio is also not required. In the second method, a combination of one or more images of the original image Org2, the stamp extraction image Egm2, and the outline image Otw2 and size information can be used as input information for the neural network. In addition, in the second method, the outline image Otw2 extracted from the original image Org2 itself contains information indicating the size of the drug, so when the outline image Otw2 is used for input, there is an advantage that numerical information on the major and minor diameters is not necessarily required.

その一方で、第2の方式の場合、ニューラルネットワークが受け付ける入力画像サイズが世の中に存在する最大の薬剤サイズによって決定されるため、特に小さな錠剤等において、錠剤の周囲に余分な空間ができてしまい、処理に無駄が発生し得る。また、ニューラルネットワークの受け付け入力画像サイズが第1の方式よりも大きくなるため、第1の方式と比べて実行時間が長くなり得る。さらに、第2の方式の場合、小さな錠剤や刻印文字が細かい錠剤をそのままの大きさで処理するため、これらの錠剤の識別精度が第1の方式よりも低くなる可能性がある。On the other hand, in the case of the second method, the input image size accepted by the neural network is determined by the maximum drug size available in the world, so extra space may be created around the tablet, especially for small tablets, which may result in wasteful processing. In addition, since the input image size accepted by the neural network is larger than that of the first method, the execution time may be longer than that of the first method. Furthermore, in the case of the second method, small tablets and tablets with finely engraved characters are processed at their original size, so the identification accuracy of these tablets may be lower than that of the first method.

第1の方式と第2の方式とを比較すると、スマートフォン10を用いた薬種の識別には、第1の方式の方がより好ましい方式である。 Comparing the first method with the second method, the first method is more preferable for identifying drug types using a smartphone 10.

〔薬種特定困難薬剤の入力情報の例〕
図14~図16に、薬種特定困難薬剤についての入力情報の例を示す。ここでは、第1の方式によって薬種特定困難薬剤の情報をニューラルネットワークに入力する場合の例を示す。
[Example of input information for drugs that are difficult to identify]
14 to 16 show examples of input information on drugs that are difficult to identify. Here, an example is shown in which information on drugs that are difficult to identify is input to a neural network using the first method.

図14は、カプセルに識別記号が印字されているカプセル薬剤(識別記号有り)の場合における入力情報の例である。識別記号有りのカプセル薬剤では、図12と同様に、ニューラルネットワークへの入力として、元画像Org3と、刻印抽出画像Egm3と、外形画像Otw3とのうちの1つ以上の画像の組み合わせが入力される。また、画像の他に、元画像Org3から計測されたカプセル薬剤の大きさ(長径及び短径)の数値情報が入力され得る。さらに、これらの情報に加え、リサイズ処理の倍率情報が入力され得る。刻印抽出画像Egm3は、元画像Org3にから抽出された識別記号の画像である。 Figure 14 is an example of input information in the case of a capsule drug with an identification symbol printed on the capsule (with identification symbol). For a capsule drug with an identification symbol, as in Figure 12, a combination of one or more images from the original image Org3, the engraving extraction image Egm3, and the outline image Otw3 are input as input to the neural network. In addition to the images, numerical information on the size (long axis and short axis) of the capsule drug measured from the original image Org3 may be input. In addition to this information, magnification information for the resizing process may be input. The engraving extraction image Egm3 is an image of the identification symbol extracted from the original image Org3.

図15は、識別記号が無いカプセル薬剤の場合の入力情報の例である。元画像Org4に識別記号が写っていない識別記号無しのカプセル薬剤は、もともとカプセルに識別記号が印字されていないカプセル薬剤である場合、又は、カプセルに識別記号があっても撮影の際に印字が隠れた状態で撮影されたことにより元画像Org4に識別記号が写っていない場合があり得る。 Figure 15 is an example of input information for a capsule drug without an identification mark. A capsule drug without an identification mark that does not appear in the original image Org4 may be a capsule drug that does not originally have an identification mark printed on the capsule, or may have an identification mark on the capsule but is not visible in the original image Org4 because the printing was hidden when the image was taken.

識別記号無しのカプセル薬剤では、元画像Org4と、刻印抽出画像Egm4と、外形画像Otw4とのうちの1つ以上の画像の組み合わせが入力される。ただし、識別記号無しのカプセル薬剤では、刻印抽出画像Egm4は識別記号についての情報を何も含んでいない画像となる。外形画像Otw4は元画像Org4に写るカプセル薬剤の形状を抽出した画像である。また、図14と同様に、これら画像の他に、元画像Org4から計測されたカプセル薬剤の大きさ(長径及び短径)の数値情報が入力され得る。さらに、これらの情報に加え、リサイズ処理の倍率情報が入力され得る。For capsule drugs without an identification symbol, a combination of one or more images from the original image Org4, the imprint extraction image Egm4, and the outline image Otw4 is input. However, for capsule drugs without an identification symbol, the imprint extraction image Egm4 is an image that does not contain any information about the identification symbol. The outline image Otw4 is an image that extracts the shape of the capsule drug shown in the original image Org4. In addition to these images, numerical information on the size (long diameter and short diameter) of the capsule drug measured from the original image Org4 can be input, as in FIG. 14. Furthermore, in addition to this information, magnification information for the resizing process can be input.

図16は、半錠剤の場合の入力情報の例である。半錠剤の場合も同様に、元画像Org5と、元画像Org5から抽出された刻印抽出画像Egm5と、外形画像Otw5とのうちの1つ以上の画像の組み合わせが入力される。また、画像の他に、元画像Org5から計測された半錠剤の大きさ(長径及び短径)の数値情報と、リサイズ処理の倍率情報との組み合わせが入力され得る。 Figure 16 is an example of input information for a half tablet. Similarly, in the case of a half tablet, a combination of one or more images of the original image Org5, the stamp extraction image Egm5 extracted from the original image Org5, and the outline image Otw5 is input. In addition to the images, a combination of numerical information on the size (long diameter and short diameter) of the half tablet measured from the original image Org5 and magnification information for the resizing process may be input.

図17は、機械学習システム150の機能的構成を示すブロック図である。ここでは、図12で説明した入力情報の組み合わせを学習モデル151に入力する場合の例を示す。 Figure 17 is a block diagram showing the functional configuration of the machine learning system 150. Here, an example is shown in which a combination of input information described in Figure 12 is input to the learning model 151.

機械学習システム150は、薬剤識別器120に適用される第2学習済みモデルTM2を生成する装置であり、1つ以上のコンピュータを含むコンピュータシステムを用いて実現される。機械学習システム150は、学習モデル151と、損失演算部152と、オプティマイザ154とを含む。学習モデル151には、CNNなどのニューラルネットワークが用いられる。The machine learning system 150 is an apparatus that generates a second trained model TM2 to be applied to the drug identifier 120, and is realized using a computer system including one or more computers. The machine learning system 150 includes a learning model 151, a loss calculation unit 152, and an optimizer 154. A neural network such as CNN is used for the learning model 151.

学習モデル151は、入力情報として、薬剤DRjの領域画像である薬剤画像IMjと、刻印抽出画像IM1jと、外形画像IM2jと、薬剤の大きさ(サイズ)を示す数値情報であるサイズ情報SZjと、リサイズ処理の倍率情報MGjとを組み合わせた情報の入力を受け付け、薬剤DRjの種類又は薬剤DRjが属するグループの推論結果PRjを出力する。添字のjは、訓練データのインデックス番号を表す。The learning model 151 receives as input information a combination of a drug image IMj, which is a region image of the drug DRj, an inscription extraction image IM1j, an outline image IM2j, size information SZj, which is numerical information indicating the size (dimension) of the drug, and magnification information MGj for the resizing process, and outputs an inference result PRj of the type of drug DRj or the group to which the drug DRj belongs. The subscript j represents the index number of the training data.

図17に示す機械学習システム150は、学習モデル151の前段に、刻印抽出部140と、外形抽出部142と、サイズ計測部144とを備える。刻印抽出部140は、薬剤画像IMjから刻印又は印字の文字記号を抽出し、抽出した文字記号の画像である刻印抽出画像IM1jを生成する。刻印抽出部140は、入力された画像の薬剤領域を処理して薬剤DRjの外形エッジ情報を排し、文字記号を抽出する。刻印抽出画像IM1jは、刻印部分又は印字部分の輝度が、刻印部分又は印字部分以外の部分の輝度よりも相対的に高く表現されることで、文字記号が強調された画像である。The machine learning system 150 shown in FIG. 17 includes an engraving extraction unit 140, an outer shape extraction unit 142, and a size measurement unit 144 in front of the learning model 151. The engraving extraction unit 140 extracts engraved or printed character symbols from the drug image IMj and generates an engraving extraction image IM1j, which is an image of the extracted character symbols. The engraving extraction unit 140 processes the drug region of the input image to eliminate the outer shape edge information of the drug DRj and extract the character symbols. The engraving extraction image IM1j is an image in which the character symbols are emphasized by expressing the brightness of the engraved or printed part relatively higher than the brightness of the parts other than the engraved or printed part.

外形抽出部142は、薬剤画像IMjから薬剤DRjの外形を抽出し、薬剤DRjの外形を示す画像である外形画像IM2jを生成する。サイズ計測部144は、薬剤画像IMj及び/又は外形画像IM2jから薬剤DRjの大きさを計測し、長径及び短径のそれぞれの寸法を示すサイズ情報SZjを生成する。The contour extraction unit 142 extracts the contour of the drug DRj from the drug image IMj and generates a contour image IM2j that is an image showing the contour of the drug DRj. The size measurement unit 144 measures the size of the drug DRj from the drug image IMj and/or the contour image IM2j and generates size information SZj that indicates the dimensions of each of the major and minor axes.

機械学習システム150では、薬剤画像IMjからこれらの情報を生成して学習モデル151に入力する構成を採用しているが、予め訓練データを準備する段階で刻印抽出画像IM1j、外形画像IM2j、及びサイズ情報SZjの一部又は全部を作成しておき、訓練データのデータセットに含めておいてもよい。その場合、刻印抽出部140、外形抽出部142、及びサイズ計測部144の一部又は全部は、機械学習システム150において不要である。In the machine learning system 150, this information is generated from the drug image IMj and input to the learning model 151, but some or all of the mark extraction image IM1j, the external shape image IM2j, and the size information SZj may be created in advance at the stage of preparing the training data and included in the training data set. In that case, some or all of the mark extraction unit 140, the external shape extraction unit 142, and the size measurement unit 144 are not necessary in the machine learning system 150.

損失演算部152は、学習モデル151から出力される推論結果と、入力情報に対応付けされている正解データ(教師データ)GTjとを基に、両者間の損失値(ロス)を算出する。The loss calculation unit 152 calculates the loss value between the inference result output from the learning model 151 and the correct answer data (teacher data) GTj corresponding to the input information.

オプティマイザ154は、学習モデル151が出力する推論結果PRjが正解データGTjに近づくように、学習モデル151の出力と、正解の教師信号との誤差を示す損失値の演算結果に基づき、学習モデル151のパラメータの更新量を決定し、学習モデル151のパラメータの更新処理を行う。オプティマイザ154は、勾配降下法などのアルゴリズムに基づきパラメータの更新を行う。学習モデル151のパラメータは、ニューラルネットワークの各層の処理に用いるフィルタのフィルタ係数(ノード間の結合の重み)及びノードのバイアスなどを含む。機械学習システム150は、複数の訓練データをまとめたミニバッチの単位で訓練データの取得とパラメータの更新とを実施してもよい。The optimizer 154 determines the amount of update of the parameters of the learning model 151 based on the calculation result of the loss value indicating the error between the output of the learning model 151 and the correct teacher signal so that the inference result PRj output by the learning model 151 approaches the correct data GTj, and performs the parameter update process of the learning model 151. The optimizer 154 updates the parameters based on an algorithm such as the gradient descent method. The parameters of the learning model 151 include the filter coefficients (weights of connections between nodes) of the filters used in processing each layer of the neural network and the biases of the nodes. The machine learning system 150 may acquire training data and update the parameters in units of mini-batches that combine multiple training data.

こうして、多数の訓練データを用いて機械学習が行われることにより、学習モデル151のパラメータが最適化され、目的とする推論性能を持つ学習モデル151が生成される。許容される推論精度が確認された学習済み(訓練済み)の学習モデル151は、薬剤識別器120の第2学習済みモデルTM2として用いられる。In this way, machine learning is performed using a large amount of training data, thereby optimizing the parameters of the learning model 151 and generating a learning model 151 having the desired inference performance. The learned (trained) learning model 151 for which an acceptable inference accuracy has been confirmed is used as the second trained model TM2 of the drug identifier 120.

この場合、薬種識別装置100は、撮影画像から刻印抽出画像、外形画像、及びサイズ情報を得るために、例えば、図5で説明した薬剤領域切出部118と薬剤識別器120との間に、刻印抽出部140、外形抽出部142、及びサイズ計測部144と同様の処理部を備える構成とする。薬種識別装置100は本開示における「物体識別装置」の一例である。In this case, in order to obtain an imprint extraction image, a contour image, and size information from the captured image, the drug type identification device 100 is configured to include processing units similar to the imprint extraction unit 140, contour extraction unit 142, and size measurement unit 144 between the drug area cut-out unit 118 and the drug identifier 120 described in Fig. 5. The drug type identification device 100 is an example of an "object identification device" in this disclosure.

〔薬種識別装置100の活用フェーズ〕
図18は、本実施形態に係る薬種識別装置100の動作を示すフローチャートである。ここでは、薬種識別装置100の活用態様の一例として、ある患者の持参薬を鑑別する場合を例に説明する。
[Utilization phase of the drug type identification device 100]
18 is a flowchart showing the operation of the drug type identification device 100 according to this embodiment. Here, as an example of a usage mode of the drug type identification device 100, a case where a drug brought by a certain patient is identified will be described.

ステップS11において、ユーザは、識別しようとする複数の薬剤を同時に撮影する。ユーザは、同一服用時点等、薬学的意味のある単位で複数の薬剤を撮影することができる。例えば、ユーザは、患者の持参薬に含まれる一包化された薬剤を袋から取り出し、スマートフォン10のカメラ機能を使ってこれら複数の薬剤を同時に(まとめて)撮影する。プロセッサ102は、撮影によって得られた撮影画像を取得する。このとき撮影される複数の薬剤には、薬種特定可能薬剤及び薬種特定困難薬剤が混在する可能性がある。薬種特定可能薬剤は本開示における「種類特定可能物体」の一例であり、薬種特定困難薬剤は本開示における「種類特定困難物体」の一例である。In step S11, the user simultaneously photographs multiple medications to be identified. The user can photograph multiple medications in units that have pharmaceutical meaning, such as the same time of taking the medication. For example, the user removes a package of medications contained in the patient's own medication from a bag and photographs the multiple medications simultaneously (all at once) using the camera function of the smartphone 10. The processor 102 acquires the photographed image obtained by photographing. The multiple medications photographed at this time may include a mixture of identifiable and difficult to identify medications. An identifiable medication is an example of an "identifiable object" in this disclosure, and a difficult to identify medication is an example of an "object that is difficult to identify" in this disclosure.

次いで、ステップS12において、プロセッサ102は、薬剤検出器114によって撮影画像から個々の薬剤を検出する。薬剤検出器114は、撮影画像から個々の薬剤単位で薬種特定可能薬剤及び薬種特定困難薬剤の検出を行う。薬剤検出器114は、例えば、「薬剤を囲む回転ありのバウンディングボックスの中心座標、高さ、幅、及び回転角」、又は「薬剤の形状そのもので薬剤領域を塗りつぶしたセグメンテーションマスク」を推定し、推定結果を出力する。薬剤検出器114による推定(検出)結果は、タッチパネルディスプレイ14に表示され、ユーザによる確認に供される。プロセッサ102は、タッチパネルディスプレイ14の入力部14B等から検出結果の修正の指示、又は検出結果を承認する(確定させる)指示の入力を受け付ける。薬剤検出器114の検出結果に過検出又は検出失敗(検出漏れ)などがある場合、ユーザはタッチパネルディスプレイ14の入力部14B等から検出結果を修正する指示を入力し、個々の薬剤の正しい領域を指定することができる。なお、検出結果の修正は、検出された領域単位又は薬剤単位で行うことができる。薬剤単位は本開示における「物体単位」の一例である。Next, in step S12, the processor 102 detects individual drugs from the captured image using the drug detector 114. The drug detector 114 detects identifiable drugs and difficult-to-identify drugs on an individual drug basis from the captured image. The drug detector 114 estimates, for example, the "center coordinates, height, width, and rotation angle of a rotated bounding box surrounding the drug" or a "segmentation mask in which the drug area is filled with the shape of the drug itself" and outputs the estimation result. The estimation (detection) result by the drug detector 114 is displayed on the touch panel display 14 and is available for confirmation by the user. The processor 102 accepts input of an instruction to correct the detection result or an instruction to approve (confirm) the detection result from the input unit 14B of the touch panel display 14 or the like. If the detection result of the drug detector 114 includes overdetection or detection failure (missed detection), the user can input an instruction to correct the detection result from the input unit 14B of the touch panel display 14 and specify the correct area of each drug. The detection results can be corrected in units of detected regions or in units of detected medicines. A medicine unit is an example of an "object unit" in the present disclosure.

ステップS13において、プロセッサ102は、薬剤検出器114による検出結果に過検出又は検出失敗があるか否かを判定する。薬剤検出器114による検出結果に過検出又は検出失敗があり、ステップS13の判定結果がYes判定である場合、プロセッサ102はステップS14に進み、ユーザから受け付けた指示に従い、薬剤の領域を修正する処理を行う。例えば、過検出した領域が含まれている場合、その領域を削除する処理が行われる。また、薬剤があるのに領域が検出されない検出失敗がある場合は、当該薬剤についての新規領域を追加する処理などが行われる。ステップS14の後、プロセッサ102は、ステップS15に進む。In step S13, the processor 102 determines whether the detection result by the drug detector 114 includes an overdetection or a detection failure. If the detection result by the drug detector 114 includes an overdetection or a detection failure and the determination result in step S13 is a Yes determination, the processor 102 proceeds to step S14 and performs a process to correct the drug area according to instructions received from the user. For example, if an overdetected area is included, a process to delete that area is performed. Also, if there is a detection failure where an area is not detected even though the drug is present, a process to add a new area for the drug is performed. After step S14, the processor 102 proceeds to step S15.

また、ステップS13の判定結果がNo判定である場合、つまり、薬剤検出器114による検出結果に過検出又は検出失敗がない場合、プロセッサ102は、ステップS15に進む。ステップS15において、プロセッサ102は、画像内の薬剤毎に薬剤識別器120を用いて識別を行う。プロセッサ102は、検出された薬剤単位で薬剤画像の切り出しを行い、個々の薬剤画像を薬剤識別器120に投入して、薬剤の識別を行う。 Also, if the judgment result in step S13 is a No judgment, that is, if there is no overdetection or detection failure in the detection result by the drug detector 114, the processor 102 proceeds to step S15. In step S15, the processor 102 performs identification using the drug identifier 120 for each drug in the image. The processor 102 cuts out the drug image in units of the detected drug, and inputs each drug image into the drug identifier 120 to identify the drug.

ステップS15の処理内容については、図19を用いて後述するが、概要は次のとおりである。すなわち、薬種特定可能薬剤については、薬剤識別器120によって薬剤種類(薬種)単位での推論がなされることが期待される。薬剤識別器120によって得られた薬種の識別結果に対して、目視で薬剤が正しいことを確認できた場合は、推論した結果を確定する。その一方で、薬剤識別器120が間違って薬種特定困難薬剤のグループ単位で推論された場合は、他の上位推論候補に提示されている薬剤から選択するか、音声検索若しくはテキスト検索等によって薬種を特定する。The processing content of step S15 will be described later using FIG. 19, but the outline is as follows. That is, for drugs with identifiable drug types, it is expected that the drug identifier 120 will infer on a drug type (drug type) basis. When it is confirmed by visual inspection that the drug type identification result obtained by the drug identifier 120 is correct, the inference result is confirmed. On the other hand, if the drug identifier 120 erroneously infers on a group basis of drugs with difficult drug types, the drug type is selected from drugs presented as other top inference candidates, or identified by voice search, text search, or the like.

また、薬種特定可能薬剤については、薬剤識別器120によって薬剤が属するグループ単位での推論がなされることが期待される。薬種特定困難薬剤としてグループ単位で推論された場合は、当該薬剤の撮影画像の目視でその推論が正しいことを確認できた場合は、そのグループに対応して規定された薬種特定フローへと進む。例えば「カプセル薬剤」のグループであればカプセルに付された文字記号を撮影画像上で目視して、文字及び/又は記号のテキストをテキスト入力ないし音声入力し、刻印テキストマスタのデータベースを検索して、識別対象薬剤とマスタデータとを照合することにより、薬種を特定するなどの薬種特定フローに移行する。 For drugs with identifiable drug types, the drug identifier 120 is expected to infer the drug by group to which the drug belongs. If a drug is inferred by group as a drug with difficult drug type identification, and if the inference is confirmed to be correct by visual inspection of the captured image of the drug, the flow proceeds to the drug type identification flow defined for that group. For example, for a group of "capsule drugs," the character symbols attached to the capsules are visually inspected in the captured image, the text of the characters and/or symbols is entered as text or by voice, and the database of the engraved text master is searched to compare the drug to be identified with the master data, thereby moving on to the drug type identification flow, where the drug type is identified.

その一方で、薬剤識別器120の薬種特定困難薬剤に対する推論結果が間違っていた場合は、ユーザが推論結果を適宜修正し、適切な薬種特定フローへと進む(図19参照)。On the other hand, if the inference result of the drug identifier 120 for a drug whose drug type is difficult to identify is incorrect, the user corrects the inference result as appropriate and proceeds to the appropriate drug type identification flow (see Figure 19).

ステップS16において、プロセッサ102は、画像内の全ての薬剤について薬種を確定したか否かを判定する。ステップS16の判定結果がNo判定である場合、プロセッサ102はステップS15に戻り、識別対象薬剤を変えて処理を継続する。ステップS16の判定結果がYes判定である場合、プロセッサ102は図18のフローチャートを終了する。In step S16, the processor 102 determines whether the drug type has been determined for all drugs in the image. If the determination result in step S16 is No, the processor 102 returns to step S15, changes the drug to be identified, and continues processing. If the determination result in step S16 is Yes, the processor 102 ends the flowchart of FIG. 18.

図19は、図18のステップS15及びステップS16に適用されるループ処理の例を示すフローチャートである。 Figure 19 is a flowchart showing an example of loop processing applied to steps S15 and S16 of Figure 18.

ステップS15の処理が開始されると、ステップS21において、プロセッサ102は、薬剤識別器120を用いて薬剤の識別を行い、その識別結果が薬種特定可能薬剤に属する薬剤であるか否かを判定する。薬剤識別器120による識別結果は、タッチパネルディスプレイ14を通じてユーザに提供される。プロセッサ102は、タッチパネルディスプレイ14の入力部14B等から薬種を確定させる指示、識別結果の修正の指示、又はテキスト検索等の他の処理に移行する指示など各種の指示の入力を受け付ける。ユーザは、提示される識別結果を確認し、タッチパネルディスプレイ14の入力部等から薬種を確定させる指示を入力したり、識別結果の修正又は刻印テキスト検索への移行などの指示を入力したりすることができる。When the processing of step S15 is started, in step S21, the processor 102 uses the drug identifier 120 to identify the drug and determines whether the identification result is a drug that belongs to a drug type identifiable drug. The identification result by the drug identifier 120 is provided to the user through the touch panel display 14. The processor 102 accepts input of various instructions from the input unit 14B of the touch panel display 14, such as an instruction to confirm the drug type, an instruction to correct the identification result, or an instruction to move to other processing such as a text search. The user can check the presented identification result and input an instruction to confirm the drug type from the input unit of the touch panel display 14, or an instruction to correct the identification result or move to an engraving text search.

ステップS21の判定結果がYes判定である場合、プロセッサ102はステップS22に進む。ステップS22において、プロセッサ102は、薬剤識別器120による薬種特定可能薬剤という結果が正しいか否かを判定する。ステップS22の判定結果がYes判定である場合、プロセッサ102はステップS23に進み、薬剤識別器120で特定(推論)された薬種が正しいか否かを判定する。ユーザが目視で正しい薬種であることを確認できた場合には、ユーザが薬種を確定させる指示を入力することができる。If the judgment result of step S21 is a Yes judgment, the processor 102 proceeds to step S22. In step S22, the processor 102 judges whether or not the result of the drug identifier 120 that the drug is a drug type identifiable drug is correct. If the judgment result of step S22 is a Yes judgment, the processor 102 proceeds to step S23 and judges whether or not the drug type identified (inferred) by the drug identifier 120 is correct. If the user can visually confirm that the drug type is correct, the user can input an instruction to confirm the drug type.

ステップS23の判定結果がYes判定である場合、プロセッサ102はステップS29に進み、薬種を確定させる。 If the judgment result of step S23 is Yes, the processor 102 proceeds to step S29 and confirms the drug type.

ステップS23の判定結果がNo判定である場合、プロセッサ102はステップS28に進む。ステップS28において、プロセッサ102は、刻印テキスト等による非機械学習ベースの薬種特定フローを実施する。ステップS28の後、プロセッサ102はステップS29に進む。If the judgment result of step S23 is No, the processor 102 proceeds to step S28. In step S28, the processor 102 performs a non-machine learning-based drug type identification flow using the engraving text, etc. After step S28, the processor 102 proceeds to step S29.

ステップS21の判定結果がNo判定である場合、プロセッサ102はステップS24に進む。ステップS24において、プロセッサ102は、薬剤識別器120によって識別された薬種特定困難薬剤という結果が正しいか否かを判定する。ステップS24の判定結果がNo判定である場合、プロセッサ102はステップS28に進む。If the judgment result of step S21 is No, the processor 102 proceeds to step S24. In step S24, the processor 102 judges whether the result that the drug identified by the drug identifier 120 is a drug type difficult to identify is correct. If the judgment result of step S24 is No, the processor 102 proceeds to step S28.

ステップS24の判定結果がYes判定である場合、プロセッサ102はステップS25に進み、薬剤識別器120で特定(推論)された識別結果の薬種特定困難薬剤の属するグループの種類が正しいか否かを判定する。ステップS25の判定結果がNo判定である場合、又はステップS22の判定結果がNo判定である場合、プロセッサ102はステップS26に進む。ステップS26において、プロセッサ102は、その薬剤の所属する薬種特定困難薬剤のグループを特定する。ステップS26では、プロセッサ102は、タッチパネルディスプレイ14の入力部14B等から当該薬剤の所属するグループの種類を指定する指示の入力を受け付け、受け付けた指示に従いグループを特定する。If the judgment result of step S24 is a Yes judgment, the processor 102 proceeds to step S25 and judges whether the type of group to which the difficult-to-identify drug belongs as identified (inferred) by the drug identifier 120 is correct. If the judgment result of step S25 is a No judgment, or if the judgment result of step S22 is a No judgment, the processor 102 proceeds to step S26. In step S26, the processor 102 identifies the group of difficult-to-identify drugs to which the drug belongs. In step S26, the processor 102 accepts input of an instruction to specify the type of group to which the drug belongs from the input unit 14B of the touch panel display 14 or the like, and identifies the group in accordance with the accepted instruction.

ステップS26の後、プロセッサ102はステップS27に進む。また、ステップS25の判定結果がYes判定である場合、プロセッサ102はステップS27に進む。ステップS27において、プロセッサ102は、当該薬種特定困難薬剤のグループで定義された薬種特定フローを実施する。ステップS27の後、プロセッサ102はステップS29に進み、薬種を確定する。After step S26, the processor 102 proceeds to step S27. Also, if the judgment result of step S25 is Yes, the processor 102 proceeds to step S27. In step S27, the processor 102 executes a drug type identification flow defined for the group of the drug whose drug type is difficult to identify. After step S27, the processor 102 proceeds to step S29 and determines the drug type.

画像内に含まれる全ての薬剤について薬種が確定したら、図19のループ処理を終了する。図18及び図19のフローチャートを用いて説明した薬剤識別方法は本開示における「物体識別方法」の一例である。Once the drug types have been determined for all drugs contained in the image, the loop process in FIG. 19 ends. The drug identification method described using the flowcharts in FIG. 18 and FIG. 19 is an example of an "object identification method" in this disclosure.

〔薬種識別装置100のGUI(Graphical User Interface)の例〕
[検出結果表示GUI]
図20は、タッチパネルディスプレイ14に表示される画面の例を示す図である。図20には、薬剤検出器114によって検出された薬剤領域の検出結果を表示する検出結果表示GUIの例が示されている。薬種識別装置100によって提供される画面SC1は、大きく分けて、全体画像表示部EDAと、候補表示部CDAと、ボタン表示部BDAとの3つのエリアから構成される。全体画像表示部EDAには、取得された撮影画像から生成された標準化画像が表示される。なお、全体画像表示部EDAには、マーカを含む撮影画像の全体を表示させてもよい。全体画像表示部EDAは本開示における「撮影画像表示部」の一例である。
[Example of GUI (Graphical User Interface) of drug type identification device 100]
[Detection Result Display GUI]
FIG. 20 is a diagram showing an example of a screen displayed on the touch panel display 14. FIG. 20 shows an example of a detection result display GUI that displays the detection result of the drug area detected by the drug detector 114. The screen SC1 provided by the drug type identification device 100 is roughly divided into three areas: an entire image display section EDA, a candidate display section CDA, and a button display section BDA. The entire image display section EDA displays a standardized image generated from the acquired captured image. Note that the entire captured image including the marker may be displayed on the entire image display section EDA. The entire image display section EDA is an example of a "captured image display section" in the present disclosure.

全体画像表示部EDAは、ピンチアウト又はピンチインの操作によって画像の部分を拡大又は縮小表示させることができる。このため、薬剤に付された文字記号等が小さくて見難い場合などは、各薬剤を拡大して表示させることができる。The entire image display unit EDA can enlarge or reduce parts of the image by pinching out or in. Therefore, when the letters and symbols on the medicines are small and difficult to see, each medicine can be enlarged and displayed.

全体画像表示部EDAには、薬剤検出器114による検出結果が表示される。撮影後、薬剤検出器114が検出した各薬剤の領域が矩形の枠(バウンディングボックス)で表示される。図20では、3つの薬剤DR1、DR2、DR3を含む撮影画像の例が示されている。薬剤検出器114によって検出された薬剤DR1、DR2に対して、それぞれ枠BX1、BX2が表示される。図20に示す例では、薬剤DR3について検出が失敗しており、薬剤DR3に対する枠が表示されていないものとなっている。また、図20に示す例では、薬剤が存在していない領域Absに対して過検出があり、誤検出に基づく枠BX3が表示されている。The overall image display unit EDA displays the detection results by the drug detector 114. After capturing an image, the area of each drug detected by the drug detector 114 is displayed as a rectangular frame (bounding box). Figure 20 shows an example of a captured image including three drugs DR1, DR2, and DR3. Frames BX1 and BX2 are displayed for the drugs DR1 and DR2 detected by the drug detector 114, respectively. In the example shown in Figure 20, detection has failed for drug DR3, and no frame is displayed for drug DR3. Also, in the example shown in Figure 20, there is an overdetection of the area Abs where no drug is present, and a frame BX3 based on the erroneous detection is displayed.

枠BX1、BX2、BX3で囲まれた各領域はユーザが選択可能であり、例えば、選択された領域は赤枠、選択されていない領域は青枠など枠線の色を変えて表示される。もちろん、別の色であっても良い。領域を示す枠BX1、BX2、BX3は、領域の選択/非選択の状態に応じて枠線の色を異ならせて表示させることが好ましい。 Each area surrounded by the frames BX1, BX2, and BX3 can be selected by the user, and for example, a selected area is displayed with a red frame, and an unselected area is displayed with a blue frame, with the frame line of a different color. Of course, a different color may be used. It is preferable that the frames BX1, BX2, and BX3 indicating the areas are displayed with a frame line of a different color depending on whether the area is selected or not.

各枠BX1、BX2、BX3には、チェックボックスCBが付されている。チェックボックスCBは、「薬種確定済み」であるか、「未確定状態」であるかなどのステータスに応じたマーク表示又は空白となる。 Each of the boxes BX1, BX2, and BX3 has a check box CB. The check box CB displays a mark or is blank depending on the status, such as "drug type confirmed" or "unconfirmed."

全体画像表示部EDAの最下部には領域編集スイッチSW1と、領域追加ボタンBT2と、領域削除ボタンBT3とが表示される。領域編集スイッチSW1は、薬剤の領域の検出結果を修正したい場合に操作されるスイッチである。領域編集スイッチSW1を画面の右方向にスライドすると、全体画像表示部EDAの画面上で薬剤の領域の編集が可能な状態となる。領域編集スイッチSW1をオンにすると、領域追加ボタンBT2と領域削除ボタンBT3とが押下可能な状態となり、領域修正GUIへ移行する。領域編集スイッチSW1を画面の左方向にスライドすると、領域の編集ができない状態になる。編集できない状態の場合、領域追加ボタンBT2及び領域削除ボタンBT3はグレーアウトの状態となる。 At the bottom of the overall image display unit EDA, there are displayed an area edit switch SW1, an area add button BT2, and an area delete button BT3. The area edit switch SW1 is a switch that is operated when it is desired to correct the detection results of the drug area. When the area edit switch SW1 is slid to the right of the screen, the area of the drug can be edited on the screen of the overall image display unit EDA. When the area edit switch SW1 is turned on, the area add button BT2 and area delete button BT3 can be pressed, and the area correction GUI is displayed. When the area edit switch SW1 is slid to the left of the screen, the area cannot be edited. When editing is not possible, the area add button BT2 and area delete button BT3 are grayed out.

なお、領域の編集可能のオン/オフは、図20に例示の領域編集スイッチSW1に限らず、例えば、全体画像表示部EDAの長押し、又はダブルタップ等で実装されてもよい。領域追加ボタンBT2を押すと、全体画像表示部EDAにおいて領域を指定して、薬剤の領域を追加できる状態となる。また、領域削除ボタンBT3は、過検出された領域などを削除する場合に使用される。 Note that the on/off setting of editability of the region is not limited to the region edit switch SW1 illustrated in FIG. 20, but may be implemented, for example, by a long press or double tap on the overall image display unit EDA. Pressing the region add button BT2 allows a region to be specified on the overall image display unit EDA and a drug region to be added. The region delete button BT3 is used when deleting an overdetected region, etc.

領域編集がオフの状態で各領域をタップして選択すると、その領域で切り出した薬剤画像に対して薬剤識別器120を用いた識別処理を実行し、下の候補表示部CDAに候補薬剤の薬剤情報を表示する。また、各領域に対して、長径と短径の寸法が表示される。この寸法表示のオン/オフは別途スイッチなどで切替可能な構成としてもよい。候補薬剤は本開示における「候補物体」の一例である。When region editing is off and each region is selected by tapping, the drug identifier 120 performs an identification process on the drug image cut out from that region, and drug information for the candidate drug is displayed in the candidate display area CDA below. In addition, the dimensions of the long and short diameters are displayed for each region. The on/off display of these dimensions may be configured to be switchable by a separate switch or the like. A candidate drug is an example of a "candidate object" in this disclosure.

候補表示部CDAは、主に候補薬剤の薬剤情報などを表示するエリアである。候補表示部CDAには、薬剤識別器120によって推定された識別結果を基に、候補薬剤の薬剤情報が表示される。候補薬剤の薬剤情報は、例えば、薬剤のマスタ画像と、薬剤の識別コードと、薬剤面と、薬効分類と、薬剤が所属するグループの情報と、を含む。図20では、薬剤DR1に対する候補薬剤の薬剤情報の例が示されている。なお、候補表示部CDAにおいてもピンチアウト又はピンチインの操作により画像の拡大/縮小表示が可能である。The candidate display section CDA is an area that mainly displays drug information of candidate drugs. The candidate display section CDA displays drug information of candidate drugs based on the identification result estimated by the drug identifier 120. The drug information of candidate drugs includes, for example, a master image of the drug, a drug identification code, a drug surface, a pharmacological classification, and information on the group to which the drug belongs. FIG. 20 shows an example of drug information of candidate drugs for drug DR1. Note that the image can also be enlarged/reduced in the candidate display section CDA by pinching out or in.

グループの情報を表示する表示欄は選択ボックスSLB1として構成される。また、候補表示部CDAには、刻印テキスト検索ボタンBT4が表示される。 The display field displaying group information is configured as a selection box SLB1. In addition, the candidate display area CDA displays an engraving text search button BT4.

ボタン表示部BDAには、例えば、薬種確定ボタンBT5、薬種確定保留ボタンBT6、再撮影ボタンBT7、及び完了ボタンBT8などを含む各種ボタンが配置される。これらのボタンは、状況に応じて押下可能状態又は押下不可能状態に変化し得る。再撮影ボタンBT7は、撮影画像がブレた場合など、撮影画像に問題があった場合に押下して再撮影を行う場合に使用される。 On the button display unit BDA, various buttons are arranged, including, for example, a drug type confirmation button BT5, a drug type confirmation hold button BT6, a retake button BT7, and a done button BT8. These buttons can be changed to a pressable or unpressable state depending on the situation. The retake button BT7 is used to press and retake the image when there is a problem with the captured image, such as when the captured image is blurred.

[領域編集GUI]
図21は、薬剤の領域編集を行う場合の画面表示の例である。図20で例示したように、薬剤検出器114の検出結果に過検出及び/又は検出失敗などが確認された場合、ユーザは領域編集スイッチSW1を画面右方向にスライドさせて領域編集可能な状態にする。
[Area Editing GUI]
Fig. 21 is an example of a screen display when editing the drug region. As illustrated in Fig. 20, when overdetection and/or detection failure are confirmed in the detection result of the drug detector 114, the user slides the region edit switch SW1 to the right of the screen to make the region editable.

この状態で、例えば、薬剤DR1の領域を選択すると、選択状態になっている領域は、ドラッグ、タップ等の操作で領域の位置、形状、及び回転角などを調整することができる。例えば、図22に示すように、枠BXの辺をドラッグして領域を拡縮したり、領域をドラッグして領域を平行移動させたり、領域を二本指で回転方向につまむように回して領域を回転させたりすることができる。また、枠BXのコーナ部分をドラッグすることにより、アスペクト比を一定に保ったまま領域を拡縮させることができる。 In this state, for example, if the region of drug DR1 is selected, the position, shape, and rotation angle of the selected region can be adjusted by dragging, tapping, and other operations. For example, as shown in Figure 22, the region can be enlarged or reduced by dragging an edge of frame BX, translated by dragging the region, or rotated by pinching the region with two fingers in the direction of rotation. Also, the region can be enlarged or reduced while maintaining a constant aspect ratio by dragging a corner of frame BX.

図21に示す画面SC2の場合、薬剤が存在しない領域Absに対して過検出により領域抽出(薬剤として検出)されているため、ユーザは枠BX3で示された領域Absを選択し、領域削除ボタンBT3を押下することで、領域Absを削除することができる。なお、「領域削除」の機能は、領域削除ボタンBT3に限らず、該当する領域を長押しして不図示のプルダウンメニューを表示させ、プルダウンメニューから「領域削除」を選択することで削除が行われるようにGUIを実装してもよい。 In the case of screen SC2 shown in Fig. 21, since an area Abs where no drug is present has been extracted (detected as a drug) due to overdetection, the user can select the area Abs shown in frame BX3 and press the area deletion button BT3 to delete the area Abs. Note that the "area deletion" function is not limited to the area deletion button BT3, and the GUI may be implemented so that deletion can be performed by pressing and holding the relevant area to display a pull-down menu (not shown) and selecting "area deletion" from the pull-down menu.

また、図21に示す例の場合、薬剤DR3について、撮影画像内に薬剤DR3があるのに領域が検出されていないため、ユーザは領域追加ボタンBT2を押下し、領域を選択して領域を追加できる。領域を追加する操作は、例えば、任意の一点をタップ後、そのまま右下へドラッグして矩形領域を追加作成し、図22で説明した方法などにより、矩形の横幅、縦幅、及び回転角度などを調整する。 In the example shown in Fig. 21, the area for drug DR3 is not detected even though drug DR3 is present in the captured image, so the user can press the Add Area button BT2 and select an area to add it. To add an area, for example, tap any point and then drag it to the lower right to add a rectangular area, and adjust the width, height, rotation angle, etc. of the rectangle using the method described in Fig. 22.

または、全体画像表示部EDAの画面上の一点を長押ししてデフォルトの領域不確定の矩形を表示させて領域追加し、本矩形を適切な位置に平行移動、矩形の横幅、縦幅、回転角度を調整して修正するように実装してもよい。 Alternatively, the implementation can be such that a point on the screen of the overall image display unit EDA is pressed and held to display a default rectangle with an undefined area, and an area can be added, and this rectangle can then be translated to an appropriate position and corrected by adjusting the width, height, and rotation angle of the rectangle.

[領域確定済みの検出結果表示GUI]
図23は、薬剤についての識別を確定させた状態の画面表示の例である。図23に示す画面SC3のように、薬種確定済みの薬剤DR1、DR3のそれぞれの枠BX1、BX4についてのチェックボックスCBには「薬種確定済み」のステータスを示すチェックマークが入る。チェックボックスCBを長押しするなどして、プルダウンメニューを表示させ、プルダウンメニューからステータスを変更することが可能である。例えば、「薬種確定済み」のステータスから「未確定状態」などに変更することができる。
[GUI for displaying detection results after area determination]
Fig. 23 is an example of a screen display in a state where the identification of a drug has been confirmed. As shown in screen SC3 in Fig. 23, a check mark indicating the status of "drug type confirmed" is placed in check box CB for each of boxes BX1 and BX4 of drugs DR1 and DR3 whose drug type has been confirmed. It is possible to display a pull-down menu by pressing and holding the check box CB, and change the status from the pull-down menu. For example, it is possible to change the status from "drug type confirmed" to "unconfirmed state", etc.

また、薬種特定困難薬剤などについては、必ずしも薬種を特定できるわけではないので、「薬種確定保留」のステータスがあってもよい。例えば、薬種の確定を保留する薬剤DR2のチェックボックスCBには「薬種確定保留」のステータスを示す「×」マークを表示させてもよい。なお、薬種確定も薬種確定保留もしていない「未確定状態」の場合、チェックボックスCBには何も表示されない(図22参照)。チェックボックスCBのデフォルトは「未確定状態」を示す空白である。 In addition, for drugs that are difficult to identify, the drug type cannot necessarily be identified, so a status of "drug type determination pending" may be displayed. For example, an "X" mark indicating the status of "drug type determination pending" may be displayed in the check box CB of drug DR2, for which drug type determination is pending. Note that in the "unconfirmed state" where the drug type has neither been determined nor pending, nothing is displayed in the check box CB (see Figure 22). The default for the check box CB is blank, indicating an "unconfirmed state."

全ての薬剤の識別ステータスを決定したら、ユーザは完了ボタンBT8を押下して、本撮影画像に対する識別作業を完了する。 Once the identification status of all medications has been determined, the user presses the Complete button BT8 to complete the identification process for the captured image.

[識別結果確認GUI(薬種特定可能薬剤の場合)]
図24は、識別結果確認GUIの画面表示の例である。図24には、薬種特定可能薬剤」のグループに属する薬剤についての薬剤情報を表示するGUIの例を示す。なお、図24では全体画像表示部EDAの図示を省略しているが、図24に示す画面SC4の候補表示部CDAの上に全体画像表示部EDAが存在している(図23参照)。
[Identification result confirmation GUI (for identifiable drugs)]
Fig. 24 is an example of a screen display of the identification result confirmation GUI. Fig. 24 shows an example of a GUI that displays drug information about drugs belonging to the group of "drug type identifiable drugs". Note that, although the illustration of the whole image display unit EDA is omitted in Fig. 24, the whole image display unit EDA exists above the candidate display unit CDA of the screen SC4 shown in Fig. 24 (see Fig. 23).

候補表示部CDAには、全体画像表示部EDAで選択した領域の薬剤切出画像に対して薬剤識別器120が推定した薬剤のマスタ画像の表と裏、薬剤コード、薬剤名、及び大きさ(長径、短径の寸法)等の薬剤情報が表示される。また、これらの薬剤情報が表示される薬剤情報表示部の下部に、選択に係る薬剤が属するグループの種類が表示される。グループの種類は選択ボックスSLB1に表示される形式となっている。 The candidate display section CDA displays drug information such as the front and back of the master image of the drug estimated by the drug identifier 120 for the drug cut-out image of the area selected in the overall image display section EDA, the drug code, drug name, and size (major axis and minor axis dimensions). In addition, the type of group to which the selected drug belongs is displayed at the bottom of the drug information display section where this drug information is displayed. The group type is displayed in a format in the selection box SLB1.

画面SC4の右端の右矢印ボタンBT9を押下又は左スワイプすると、よりスコア下位の候補薬剤が順に、候補表示部CDAの薬剤情報表示部に表示される。また、画面左端の左矢印ボタンBT10を押下又は右スワイプすると、よりスコア上位の候補薬剤が順に、候補表示部CDAの薬剤情報表示部に表示される。When the right arrow button BT9 on the right edge of the screen SC4 is pressed or swiped left, the candidate drugs with lower scores are displayed in order in the drug information display section of the candidate display section CDA. When the left arrow button BT10 on the left edge of the screen is pressed or swiped right, the candidate drugs with higher scores are displayed in order in the drug information display section of the candidate display section CDA.

また、推論されたグループが間違いの場合、選択ボックスSLB1のプルダウンボタンの押下によってプルダウンメニューPDMを表示させ、プルダウンメニューPDMの中から正しいグループを選択して各グループに特有のGUIへ遷移することができる。 Also, if the inferred group is incorrect, the pull-down menu PDM can be displayed by pressing the pull-down button in the selection box SLB1, and the correct group can be selected from the pull-down menu PDM to transition to a GUI specific to each group.

薬剤識別器120が出力した候補薬剤の中に正解の薬剤が見当たらない場合などに、薬剤識別器120の薬種推定によらないテキストベースの方法で検索を行う際に、刻印テキスト検索ボタンBT4を押下することにより、刻印テキスト検索GUIへ遷移する。When the correct drug cannot be found among the candidate drugs output by the drug identifier 120, for example, when performing a search using a text-based method that does not rely on the drug type estimation by the drug identifier 120, pressing the engraving text search button BT4 will transition to the engraving text search GUI.

薬種確定ボタンBT5は、候補表示部CDAに表示又は選択された薬剤で薬種を確定する場合に押下される。薬種確定ボタンBT5が押されると、薬種が確定された状態となり、全体画像表示部EDAの該当薬剤のチェックボックスCBにチェックマークが表示される。薬種確定保留ボタンBT6は、選択した薬剤について薬種を判断しないで鑑別完了する場合に押下される。薬種確定保留ボタンBT6が押されると、全体画像表示部EDAの該当薬剤のチェックボックスCBに「×」マークが表示される。 The Confirm Drug Type button BT5 is pressed when confirming the drug type for the drug displayed or selected in the candidate display area CDA. When the Confirm Drug Type button BT5 is pressed, the drug type is confirmed and a check mark is displayed in the check box CB for the corresponding drug in the overall image display area EDA. The Hold Drug Type Confirmation button BT6 is pressed when identification of the selected drug is to be completed without determining the drug type. When the Hold Drug Type Confirmation button BT6 is pressed, an "X" mark is displayed in the check box CB for the corresponding drug in the overall image display area EDA.

候補表示部CDAの右上の矢印ボタンBT11が押下されると、候補一覧表示GUI(図25参照)へ遷移する。When the arrow button BT11 in the upper right corner of the candidate display section CDA is pressed, the screen transitions to the candidate list display GUI (see Figure 25).

[候補一覧表示GUI]
図25は、候補一覧表示GUIの画面表示の例である。候補一覧表示GUIは、選択に係る薬剤が「薬種特定可能薬剤」のグループに属する場合に、薬剤識別器120による推論のスコア上位の薬剤を一覧表示するGUIである。図25のように、複数の候補薬剤が一覧表示されるため、比較検討が可能になる。なお、図25では全体画像表示部EDAとボタン表示部BDAとの図示を省略しているが、図25に示す候補表示部CDAの画面SC5の上に全体画像表示部EDAが存在しており、候補表示部CDAの画面の下にボタン表示部BDAが存在している(図23参照)。図26~図29の各図についても同様である。
[Candidate List Display GUI]
FIG. 25 is an example of a screen display of the candidate list display GUI. The candidate list display GUI is a GUI that displays a list of drugs with high inference scores by the drug identifier 120 when the drug related to the selection belongs to the group of "drugs that can be identified by drug type". As shown in FIG. 25, a plurality of candidate drugs are displayed in a list, so that comparison and consideration can be made. Note that although the illustration of the whole image display unit EDA and the button display unit BDA is omitted in FIG. 25, the whole image display unit EDA exists above the screen SC5 of the candidate display unit CDA shown in FIG. 25, and the button display unit BDA exists below the screen of the candidate display unit CDA (see FIG. 23). The same applies to each of FIGS. 26 to 29.

図25では、スコア上位の4つの薬剤についての薬剤情報が一覧表示されている例が示されている。画面SC5の右端のスクロールバーSRBのノブを下方に操作又は画面をスワイプすると、より下位の候補も表示可能となる。この候補画像一覧の画面SC5上で、いずれかの薬剤を選択し、ボタン表示部BDAの「薬種確定ボタンBT5」を押下することにより、薬種を確定できる。 Figure 25 shows an example in which drug information for the top four drugs with the highest scores is displayed in a list. By operating the knob on the scroll bar SRB at the right end of screen SC5 downward or swiping the screen, lower-ranked candidates can also be displayed. The drug type can be confirmed by selecting any drug on this candidate image list screen SC5 and pressing the "Drug Type Confirmation Button BT5" in the button display section BDA.

一覧表示における表示順は、薬剤識別器120による推論のスコア順の他、例えば薬剤識別器120によるスコア一位だった薬剤の刻印テキストに類似している薬剤を刻印テキストデータベースから検索して、その類似スコア順に表示してもよい。The display order in the list may be in the order of the inference score by the drug identifier 120, or, for example, drugs similar to the imprinted text of the drug with the highest score by the drug identifier 120 may be searched from the imprinted text database and displayed in order of their similarity score.

また、一覧表示の表示形態については、図25のように縦一列に並べて表示する形式に限らず、より画面を広く使って多行多列表示にしてもよい。 In addition, the display format of the list display is not limited to a vertical line display as in Figure 25, but may be a multi-row, multi-column display using a wider area of the screen.

候補画像一覧においては、各薬剤の薬剤情報として、マスタ画像(表裏)と、薬剤名を示す文字情報と、大きさの数値情報とに加えて、刻印テキストデータベースに登録されている刻印テキスト情報(マスタ文字情報)を表示することが好ましい。図25では図示の便宜上「マスタ文字情報」という表記をしているが、実際の画面表示では各薬剤について登録されている刻印テキスト情報が表示されることになる。In the candidate image list, it is preferable to display the master image (front and back), text information indicating the drug name, and numerical size information as well as the engraving text information (master text information) registered in the engraving text database as drug information for each drug. In Figure 25, the term "master text information" is used for convenience of illustration, but the actual screen display will display the engraving text information registered for each drug.

候補表示部CDAの右上の矢印ボタンBT11が押されると、識別結果確認GUI(図24参照)へ戻る。 When the arrow button BT11 in the upper right corner of the candidate display section CDA is pressed, the user returns to the identification result confirmation GUI (see Figure 24).

[刻印テキスト検索GUI]
図26は、刻印テキストGUIの画面表示の例である。刻印テキストGUIは、選択に係る薬剤が「薬種特定可能薬剤」のグループに属する場合に、検索ボックスSBX1に入力したテキストに類似したテキストの薬剤を一覧表示するGUIである。図24又は図25の画面で刻印テキスト検索ボタンBT4が押されると、図26に示すように、検索ボックスSBX1を含む刻印テキストGUIの画面SC6が表示される。
[Engraving Text Search GUI]
Fig. 26 is an example of the screen display of the engraving text GUI. The engraving text GUI is a GUI that displays a list of drugs with text similar to the text entered in the search box SBX1 when the drug related to the selection belongs to the group of "drug type identifiable drugs". When the engraving text search button BT4 is pressed on the screen of Fig. 24 or Fig. 25, the engraving text GUI screen SC6 including the search box SBX1 is displayed as shown in Fig. 26.

ユーザは、検索ボックスSBX1にキーボード入力又は音声入力でテキスト入力して、検索ボタンSBT1を押すことにより、刻印文字で検索することができる。検索結果は、図25と同様に、一覧表示される。候補薬剤の一覧表示の表示形式についても図25と同様である。検索ボックスSBX1に一文字入力する毎に類似スコア判定を行い、即時に候補一覧表示を更新してもよい。 The user can search by engraved characters by entering text into search box SBX1 using keyboard input or voice input and pressing search button SBT1. Search results are displayed as a list, similar to Figure 25. The display format of the list of candidate drugs is also the same as Figure 25. A similarity score determination is performed each time a character is entered into search box SBX1, and the candidate list display may be updated immediately.

[カプセル検索GUI]
図27は、カプセル検索GUIの画面表示の例である。カプセル検索GUIは、薬剤識別器120によって「カプセル薬剤」と識別された場合、又はグループの選択ボックスSLB1のプルダウンメニューPDMで「カプセル」が選択された場合に、候補表示部CDAに表示されるGUIである。
[Capsule Search GUI]
27 is an example of a screen display of a capsule search GUI. The capsule search GUI is a GUI that is displayed in the candidate display unit CDA when a “capsule drug” is identified by the drug identifier 120 or when “capsule” is selected in the pull-down menu PDM of the group selection box SLB1.

カプセル検索の画面SC7は、テキスト検索ボックスSBX2と、サイズ検索ボックスSZBと、カプセル色の選択ボックスSLB2、SLB3と、文字色の選択ボックスSLB4と、カプセル画像表示部SRDと、グループの選択ボックスSLB1と、カプセル一覧ボタンBT13とを含む。 The capsule search screen SC7 includes a text search box SBX2, a size search box SZB, capsule color selection boxes SLB2, SLB3, a text color selection box SLB4, a capsule image display section SRD, a group selection box SLB1, and a capsule list button BT13.

テキスト検索ボックスSBX2に、キーボード入力又は音声入力でテキスト入力して、検索ボタンSBT2を押すことにより、カプセルの印字文字で検索することができる。また、薬剤名のテキストでも検索することができる。 By entering text into the text search box SBX2 using the keyboard or voice input and pressing the search button SBT2, you can search by the characters printed on the capsule. You can also search by the text of the drug name.

サイズ検索ボックスSZBは、長径の数値を入力する入力ボックスIB1と、短径の数値を入力する入力ボックスIB2と、検索ボタンBT12とを含む。入力ボックスIB1、IB2にキーボード入力又は音声入力で数値を入力して、検索ボタンBT12を押すことにより、カプセル薬剤の大きさ(サイズ)で検索することができる。The size search box SZB includes an input box IB1 for inputting the numerical value of the long diameter, an input box IB2 for inputting the numerical value of the short diameter, and a search button BT12. By inputting numerical values into the input boxes IB1 and IB2 by keyboard input or voice input and pressing the search button BT12, it is possible to search by the size of the capsule medicine.

検索結果はカプセル画像表示部SRDに表示される。テキスト検索の場合は、テキスト類似スコアの高い順にマスタ画像の表裏を上から表示する。テキスト検索ボックスSBX2に一文字入力する毎に類似スコア判定を行い、即時に候補一覧表示を更新してもよい。カプセル検索においては、カプセルに限定してテキスト検索する。一方、大きさ(サイズ)で検索する場合には、入力された長径及び短径の値と一致度の高い順にマスタ画像の表裏を上から表示する。この場合も検索範囲はカプセルに限定して検索が行われる。 The search results are displayed on the capsule image display unit SRD. In the case of a text search, the front and back of the master image are displayed from the top in order of highest text similarity score. A similarity score determination is performed each time a character is entered into the text search box SBX2, and the candidate list display may be updated immediately. In a capsule search, the text search is limited to capsules. On the other hand, when searching by size, the front and back of the master image are displayed from the top in order of highest degree of match with the entered long axis and short axis values. In this case too, the search range is limited to capsules.

また、カプセル画像表示部SRDに表示させるカプセル薬剤のマスタ画像の表示順については、過去の鑑別履歴データを参照し、鑑別履歴ありのカプセルを優先的に表示してもよい。画面SC7右端のスクロールバーSRBのノブを下方に操作又は画面SC7をスワイプすると、より下位の候補も表示可能となる。 The order in which the master images of capsule drugs are displayed on the capsule image display unit SRD may refer to past identification history data and prioritize display of capsules with identification history. By operating the knob of the scroll bar SRB on the right edge of the screen SC7 downward or swiping the screen SC7, lower-level candidates can also be displayed.

候補表示の形態については、図27のように縦一列に並べて表示する形式に限らず、多行多列表示にしてもよい。The format of the candidate display is not limited to a vertical line display as shown in Figure 27, but may be a multi-row, multi-column display.

画面SC7右下のカプセル一覧ボタンBT13が押されると、カプセル画像表示部SRDが右側に拡大し、一度により多くのカプセル薬剤の候補が一覧表示される。この場合、カプセル一覧ボタンBT13は不図示の「戻るボタン」に差し替わり、戻るボタンが押されると、元のカプセル候補画面(図27)に戻る。When the capsule list button BT13 at the bottom right of the screen SC7 is pressed, the capsule image display section SRD expands to the right, and more capsule drug candidates are displayed at once. In this case, the capsule list button BT13 is replaced with a "back button" (not shown), and pressing the back button returns to the original capsule candidate screen (Figure 27).

カプセル画像表示部SRDに表示されているカプセル画像の中から、いずれかのカプセルを選択し、ボタン表示部BDAの「薬種確定ボタンBT5」を押下することにより、薬種を確定できる。The type of drug can be confirmed by selecting any capsule from the capsule images displayed in the capsule image display unit SRD and pressing the "Drug Type Confirmation Button BT5" on the button display unit BDA.

カプセル色の選択ボックスSLB2、SLB3、及び文字色の選択ボックスSLB4を用いて、カプセルの色及び印字文字の色を指定して候補を絞れるようにしてもよい。また、撮影画像からカプセル色を自動で認識して予め候補を絞って、選択ボックスSLB2、SLB3をデフォルト表示するようにしてもよい。カプセルの候補画像一覧においては、各薬剤の薬剤情報として、マスタ画像(表裏)と、薬剤名を示す文字情報と、大きさの数値情報とに加えて、刻印テキストデータベースに登録されている刻印テキスト情報(マスタ文字情報)を表示することが好ましい。The capsule color selection boxes SLB2 and SLB3 and the character color selection box SLB4 may be used to specify the capsule color and the color of the printed characters to narrow down the candidates. Alternatively, the capsule color may be automatically recognized from the captured image to narrow down the candidates in advance, and the selection boxes SLB2 and SLB3 may be displayed as default. In the list of candidate capsule images, it is preferable to display the master image (front and back), character information indicating the drug name, and numerical size information as well as the engraving text information (master character information) registered in the engraving text database as drug information for each drug.

[無地薬剤検索GUI]
図28は、無地薬剤検索GUIの画面表示の例である。無地薬剤検索GUIは、薬剤識別器120によって「無地薬剤」と識別された場合、又はグループの選択ボックスSLB1のプルダウンメニューPDMで「無地薬剤」が選択された場合に、候補表示部CDAに表示されるGUIである。
[Blank Drug Search GUI]
28 is an example of a screen display of a plain medicine search GUI. The plain medicine search GUI is a GUI that is displayed in the candidate display unit CDA when a medicine is identified as a "plain medicine" by the medicine identifier 120 or when a "plain medicine" is selected in the pull-down menu PDM of the group selection box SLB1.

無地薬剤検索の画面SC8は、色の選択ボックスSLB5と、無地薬剤画像表示部SRD2と、グループの選択ボックスSLB1と、無地薬剤一覧ボタンBT14とを含む。 The plain drug search screen SC8 includes a color selection box SLB5, a plain drug image display section SRD2, a group selection box SLB1, and a plain drug list button BT14.

無地薬剤画像表示部SRD2は、全体画像表示部EDAで選択されている薬剤の長径及び短径の値と一致度の高い順に、マスタ画像の表裏を上から表示する。この場合、検索範囲は、無地錠剤に限定して検索が行われる。The plain medicine image display section SRD2 displays the front and back of the master image from top to bottom in order of the degree of match with the major axis and minor axis values of the medicine selected in the whole image display section EDA. In this case, the search range is limited to plain tablets.

無地薬剤画像表示部SRD2に表示させる無地薬剤のマスタ画像の表示順については、過去の鑑別履歴データを参照し、鑑別履歴ありの無地薬剤を優先的に表示してもよい。画面右端のスライダバーのノブを下方に操作又は画面をスワイプすると、より下位の候補も表示可能となる。The display order of the master images of plain drugs displayed on the plain drug image display unit SRD2 may refer to past discrimination history data and prioritize display of plain drugs with discrimination history. Lower-ranked candidates can also be displayed by operating the slider bar knob on the right edge of the screen downward or swiping the screen.

候補表示の形態については、図27のように縦一列に並べて表示する形式に限らず、多行多列表示にしてもよい。The format of the candidate display is not limited to a vertical line display as shown in Figure 27, but may be a multi-row, multi-column display.

画面SC8右下の無地薬剤一覧ボタンBT14が押されると、無地薬剤画像表示部SRD2が右側に拡大し、一度により多くの無地薬剤の候補が一覧表示される。この場合、無地薬剤一覧ボタンBT14は不図示の「戻るボタン」に差し替わり、戻るボタンが押されると、元の無地薬剤候補画面(図28)に戻る。When the plain drug list button BT14 at the bottom right of screen SC8 is pressed, the plain drug image display section SRD2 expands to the right, and more plain drug candidates are displayed at once. In this case, the plain drug list button BT14 is replaced with a "back button" (not shown), and when the back button is pressed, the screen returns to the original plain drug candidate screen (Figure 28).

色の選択ボックスSLB5を用いて、無地薬剤の色を指定して候補を絞れるようにしてもよい。また、撮影画像から無地薬剤の色を自動で認識して予め候補を絞って、選択ボックスSLB5をデフォルト表示するようにしてもよい。The color selection box SLB5 may be used to specify the color of the plain medicine to narrow down the candidates. Also, the color of the plain medicine may be automatically recognized from the captured image to narrow down the candidates in advance, and the selection box SLB5 may be displayed as a default.

ユーザは、カプセル画像表示部SRDに表示されているカプセル画像の中から、いずれかのカプセルを選択し、ボタン表示部BDAの薬種確定ボタンBT5を押下することにより、薬種を確定できる。The user can confirm the type of drug by selecting one of the capsules from the capsule images displayed in the capsule image display unit SRD and pressing the drug type confirmation button BT5 on the button display unit BDA.

[分割錠剤検索GUI]
図29は、分割錠剤検索GUIの画面表示の例である。分割錠剤検索GUIは、薬剤識別器120によって「分割錠剤」と識別された場合、又はグループの選択ボックスSLB1のプルダウンメニューから「分割錠剤」が選択された場合に、候補表示部CDAに表示されるGUIである。
[Divided Tablet Search GUI]
29 is an example of a screen display of a divided tablet search GUI. The divided tablet search GUI is a GUI that is displayed in the candidate display section CDA when a "divided tablet" is identified by the medicine identifier 120 or when a "divided tablet" is selected from the pull-down menu of the group selection box SLB1.

分割錠剤検索の画面SC9は、分割錠剤画像表示部LS1と、分割錠剤呼出ボタンBT15と、検索ボックスSBX3と、候補薬剤画像表示部LS2と、グループの選択ボックスSLB1と、を含む。The divided tablet search screen SC9 includes a divided tablet image display section LS1, a divided tablet call button BT15, a search box SBX3, a candidate drug image display section LS2, and a group selection box SLB1.

分割錠剤画像表示部LS1には、全体画像表示部EDAで選択した分割錠剤画像及び分割錠剤呼出ボタンBT15の押下によって呼び出した分割錠剤画像が一覧表示される。例えば、全体画像表示部EDAで選択した分割錠剤画像は、分割錠剤画像表示部LS1における一覧表示の最上位に表示される。分割錠剤画像表示部LS1は、分割錠剤呼出ボタンBT15の押下によって呼び出した分割錠剤画像を表示させる表示部と、全体画像表示部EDAで選択した分割錠剤画像を表示させる表示部とを明確に区別して表示する構成であってもよい。The split tablet image display unit LS1 displays a list of the split tablet image selected in the overall image display unit EDA and the split tablet image called up by pressing the split tablet call button BT15. For example, the split tablet image selected in the overall image display unit EDA is displayed at the top of the list display in the split tablet image display unit LS1. The split tablet image display unit LS1 may be configured to clearly distinguish between the display unit that displays the split tablet image called up by pressing the split tablet call button BT15 and the display unit that displays the split tablet image selected in the overall image display unit EDA.

ユーザが分割錠剤呼出ボタンBT15を押下すると、過去に登録した分割錠剤撮影画像一覧から1つ又は複数の分割錠剤画像を選択して分割錠剤画像表示部LS1の一覧表示に追加することができる。分割錠剤画像の登録方法として、例えば、次のような実装が考えられる。すなわち、全体画像表示部EDAで選択した薬剤のグループが「分割錠剤」の状態である場合に、全体画像表示部EDA上で当該選択領域を長押しするとプルダウンメニューが表示され、このプルダウンメニューから「分割錠剤画像登録」の項目を選択することができる。「分割錠剤画像登録」が選択されると、該当する分割錠剤画像が共有部に保管され、本画面の分割錠剤呼出ボタンBT15の押下により、画像を呼び出すことができる状態になる。共有部は、記憶装置104の記憶領域の一部であり、鑑別の作業単位を超えて薬種識別装置100における処理において共有されるデータ等が記憶される記憶領域である。分割錠剤画像の登録方法は、この例に限らず、他の方法であってもよい。When the user presses the divided tablet call button BT15, one or more divided tablet images can be selected from the list of previously registered divided tablet images and added to the list display in the divided tablet image display section LS1. The following implementation is possible as a method for registering divided tablet images. That is, when the group of drugs selected in the whole image display section EDA is in the "divided tablet" state, pressing and holding the selected area on the whole image display section EDA displays a pull-down menu, and the "divided tablet image registration" item can be selected from this pull-down menu. When "divided tablet image registration" is selected, the corresponding divided tablet image is stored in the shared section, and the image can be called up by pressing the divided tablet call button BT15 on this screen. The shared section is a part of the memory area of the storage device 104, and is a memory area in which data and the like that are shared in the processing in the drug type identification device 100 beyond the identification work unit are stored. The method for registering divided tablet images is not limited to this example, and other methods may be used.

検索ボックスSBX3にキーボード入力又は音声入力でテキスト入力して右端の検索ボタンSBT3を押すことにより刻印文字で検索が可能である。 You can search by engraved characters by entering text into the search box SBX3 using the keyboard or voice input and then pressing the search button SBT3 on the far right.

候補薬剤画像表示部LS2は、テキスト類似スコアの高い順にマスタ画像の表裏を上から表示する。検索ボックスSBX3に一文字入力する毎に類似スコア判定を行い、即時に候補一覧表示を更新してもよい。候補薬剤画像表示部LS2に表示させる薬剤のマスタ画像の表示順については、過去の鑑別履歴データを参照し、鑑別履歴ありの分割錠剤に対応する薬剤を優先的に表示してもよい。画面右端のスライダバーのノブを下方に操作又は画面をスワイプすると、より下位の候補も表示可能となる。 The candidate drug image display unit LS2 displays the front and back of the master image from top to bottom in order of highest text similarity score. A similarity score determination may be performed each time a character is entered into the search box SBX3, and the candidate list display may be updated immediately. The order in which the master images of drugs are displayed in the candidate drug image display unit LS2 may refer to past discrimination history data, and drugs corresponding to split tablets with discrimination history may be displayed preferentially. Lower-ranked candidates can also be displayed by operating the slider bar knob on the right edge of the screen downward or swiping the screen.

候補表示の形態については、図27のように縦一列に並べて表示する形式に限らず、多行多列表示にしてもよい。The format of the candidate display is not limited to a vertical line display as shown in Figure 27, but may be a multi-row, multi-column display.

ユーザは、候補薬剤画像表示部LS2に表示されている薬剤の中から、いずれかの薬剤を選択し、ボタン表示部BDAの「薬種確定ボタンBT5」を押下することにより、薬種を確定できる。The user can confirm the drug type by selecting one of the drugs displayed in the candidate drug image display section LS2 and pressing the “Drug Type Confirmation button BT5” in the button display section BDA.

図29の候補薬剤画像一覧においても、各薬剤の薬剤情報として、マスタ画像(表裏)と、薬剤名を示す文字情報と、大きさの数値情報とに加えて、刻印テキストデータベースに登録されている刻印テキスト情報(マスタ文字情報)を表示することが好ましい。 In the list of candidate drug images in Figure 29, it is preferable to display, as drug information for each drug, the master image (front and back), text information indicating the drug name, and numerical size information, as well as the engraving text information (master text information) registered in the engraving text database.

また、図29には示されていないが、色の選択ボックスを用いて、薬剤の色を指定して候補を絞れるようにしてもよい。この場合、撮影画像から分割錠剤の色を自動で認識して予め候補を絞って、色の選択ボックスをデフォルト表示するようにしてもよい。 Although not shown in FIG. 29, a color selection box may be used to specify the color of the medicine to narrow down the candidates. In this case, the color of the divided tablet may be automatically recognized from the captured image to narrow down the candidates in advance, and the color selection box may be displayed as a default.

[各検索GUIにおけるユーザビリティ向上の工夫]
図20~図29を用いて例示した検索画面において、さらに、典型的な薬剤の形状を表す複数のアイコンを配置し、ユーザが1つ又は複数のアイコンを選択すると、該当する形状の薬剤のみが候補画面に表示されるようにしてもよい。
[Improvements to improve usability in each search GUI]
In the search screen exemplified using Figures 20 to 29, multiple icons representing typical drug shapes may be further arranged, and when the user selects one or more icons, only drugs with the corresponding shape may be displayed on the candidate screen.

図30に、典型的な薬剤の形状を表すアイコンの例を示す。薬剤の典型的な形状として、円形、長円形、楕円形、五角形、及び六角形があり得る。図30に示すように、これら典型的な各形状に対応する図形のアイコンと「その他」のボタンとを検索画面に配置して、アイコンの選択によって形状の指定を受け付ける構成であってもよい。 Figure 30 shows examples of icons representing typical drug shapes. Typical drug shapes may be circle, oval, ellipse, pentagon, and hexagon. As shown in Figure 30, graphic icons corresponding to each of these typical shapes and an "Other" button may be arranged on the search screen, allowing the user to specify a shape by selecting an icon.

色の選択についても、プルダウンメニューから選択する構成に限らず、アイコンによって色の選択肢を提供してもよい。 Color selection is not limited to being selected from a pull-down menu; color options can also be provided using icons.

図31に、色の選択に用いられるアイコンの例を示す。図31において、左から、白色、黄色、オレンジ色、茶色、赤色、青色、緑色、及び透明の各色のアイコンと「その他」のボタンとが配置された例を示す。もちろん、色の配列順及びアイコンとして表示する色の種類及び色の数については適宜設計可能である。 Figure 31 shows an example of icons used for color selection. In Figure 31, an example is shown in which, from the left, icons of white, yellow, orange, brown, red, blue, green, and transparent are arranged, along with an "Other" button. Of course, the order in which the colors are arranged and the types and number of colors displayed as icons can be designed as appropriate.

各色に対応するアイコンと「その他」のボタンとを検索画面に配置して、アイコンの選択によって色の指定を受け付ける構成であってもよい。ユーザが1つ又は複数のアイコンを選択すると、該当する色の薬剤のみが候補画面に表示されるようにしてもよい。 An icon corresponding to each color and an "Other" button may be placed on the search screen, and the color may be specified by selecting an icon. When the user selects one or more icons, only drugs of the corresponding color may be displayed on the candidate screen.

〔グループ特有の薬種特定処理を実施する構成の例〕
図32は、実施形態に係る薬種識別装置100において薬種特定困難薬剤の種類を特定するため機能的構成の例を示すブロック図である。薬種識別装置100は、薬剤識別器120によって推定された情報に基づいて処理内容を制御する薬種特定処理制御部160と、薬種推定結果提示処理部170と、カプセル薬剤特定処理部172と、無地薬剤特定処理部174と、分割錠剤特定処理部176と、を含む。
[Example of configuration for performing group-specific drug type identification processing]
32 is a block diagram showing an example of a functional configuration for identifying the type of a drug difficult to identify in the drug type identification device 100 according to the embodiment. The drug type identification device 100 includes a drug type identification processing control unit 160 that controls the processing contents based on the information estimated by the drug identifier 120, a drug type estimation result presentation processing unit 170, a capsule drug identification processing unit 172, a plain drug identification processing unit 174, and a dividable tablet identification processing unit 176.

薬剤識別器120は、識別対象薬剤が薬種特定可能薬剤である場合は薬剤の種類を推定した薬種推定情報を出力し、識別対象薬剤が薬種特定困難薬剤である場合は薬剤が属するグループを推定したグループ推定情報を出力する。薬種特定処理制御部160は、薬剤識別器120から出力される推定情報を取得し、推定情報に応じてその後の処理を振り分ける。If the drug to be identified is a drug with a drug type that can be identified, the drug identifier 120 outputs drug type estimation information that estimates the type of drug, and if the drug to be identified is a drug with a drug type that is difficult to identify, it outputs group estimation information that estimates the group to which the drug belongs. The drug type identification processing control unit 160 acquires the estimation information output from the drug identifier 120 and assigns subsequent processing according to the estimation information.

薬種特定処理制御部160は、薬剤識別器120から薬種推定情報を取得すると、薬種推定結果提示処理部170の処理を実行させる。薬種推定結果提示処理部170は、薬剤識別器120によって推定された薬剤推定情報に基づき、候補薬剤の薬剤情報を候補表示部CDAに表示させる処理を行う。薬種推定結果提示処理部170の処理により、図24及び図25で説明した画面表示が実現される。薬種推定結果提示処理部170は、テキスト検索部122と連携し、刻印テキスト検索ボタンBT4の押下により、刻印テキスト検索の処理へと遷移し得る(図26参照)。When the drug type identification processing control unit 160 acquires the drug type estimation information from the drug identifier 120, it executes the processing of the drug type estimation result presentation processing unit 170. The drug type estimation result presentation processing unit 170 performs processing to display drug information of the candidate drug in the candidate display unit CDA based on the drug estimation information estimated by the drug identifier 120. The processing of the drug type estimation result presentation processing unit 170 realizes the screen display described in Figures 24 and 25. The drug type estimation result presentation processing unit 170 works in conjunction with the text search unit 122, and can transition to engraving text search processing when the engraving text search button BT4 is pressed (see Figure 26).

薬種特定処理制御部160は、グループ判別部162を含む。グループ判別部162は、薬剤識別器120から出力された推定情報がグループ推定情報である場合に、推定されているグループのラベルを判別する。ここでは、「カプセル薬剤」、「無地薬剤」、及び「分割錠剤」のうち、いずれのグループであるかを判別する例を示す。The drug type identification processing control unit 160 includes a group discrimination unit 162. When the estimation information output from the drug identifier 120 is group estimation information, the group discrimination unit 162 discriminates the label of the estimated group. Here, an example is shown in which it is determined which group it belongs to: "capsule drug", "plain drug", or "divisible tablet".

薬種特定処理制御部160は、薬剤識別器120から取得したグループ推定情報が「カプセル薬剤」のグループを示すものである場合、カプセル薬剤特定処理部172の処理を実行させる。カプセル薬剤特定処理部172は、カプセル薬剤についての薬種の特定を支援するためのカプセル検索GUI(図27参照)を提供する処理を行う。カプセル薬剤特定処理部172は、カプセル薬剤検索部173を含む。カプセル薬剤検索部173は、検索条件の入力を受け付け、受け付けた検索条件に基づいて検索処理を実行し、検索結果を出力する。 When the group estimation information acquired from the drug identifier 120 indicates a group of "capsule drug", the drug type identification processing control unit 160 executes processing of the capsule drug identification processing unit 172. The capsule drug identification processing unit 172 performs processing to provide a capsule search GUI (see FIG. 27) for assisting in identifying the drug type of the capsule drug. The capsule drug identification processing unit 172 includes a capsule drug search unit 173. The capsule drug search unit 173 accepts input of search conditions, executes search processing based on the accepted search conditions, and outputs the search results.

薬種特定処理制御部160は、薬剤識別器120から取得したグループ推定情報が「無地薬剤」のグループを示すものである場合、無地薬剤特定処理部174の処理を実行させる。無地薬剤特定処理部174は、無地薬剤についての薬種の特定を支援するための無地薬剤検索GUI(図28参照)を提供する処理を行う。無地薬剤特定処理部174は、無地薬剤検索部175を含む。無地薬剤検索部175は、検索条件の入力を受け付け、受け付けた検索条件に基づいて検索処理を実行し、検索結果を出力する。 When the group estimation information acquired from the drug identifier 120 indicates a group of "plain drugs", the drug type identification processing control unit 160 executes processing of the plain drug identification processing unit 174. The plain drug identification processing unit 174 performs processing to provide a plain drug search GUI (see FIG. 28) to assist in identifying the drug type of plain drugs. The plain drug identification processing unit 174 includes a plain drug search unit 175. The plain drug search unit 175 accepts input of search conditions, executes search processing based on the accepted search conditions, and outputs the search results.

薬種特定処理制御部160は、薬剤識別器120から取得したグループ推定情報が「分割薬剤」のグループを示すものである場合、分割錠剤特定処理部176の処理を実行させる。分割錠剤特定処理部176は、分割錠剤についての薬種の特定を支援するための分割錠剤検索GUI(図29参照)を提供する処理を行う。分割錠剤特定処理部176は、分割錠剤検索部177と分割錠剤画像登録部178とを含む。分割錠剤検索部177は、検索条件の入力を受け付け、受け付けた検索条件に基づいて検索処理を実行し、検索結果を出力する。分割錠剤画像登録部178は、図29において説明した分割錠剤画像の登録処理及び読み出し処理を行う処理部である。If the group estimation information acquired from the drug identifier 120 indicates a group of "divided drugs", the drug type identification processing control unit 160 executes the processing of the divided tablet identification processing unit 176. The divided tablet identification processing unit 176 performs processing to provide a divided tablet search GUI (see FIG. 29) to assist in identifying the drug type of a divided tablet. The divided tablet identification processing unit 176 includes a divided tablet search unit 177 and a divided tablet image registration unit 178. The divided tablet search unit 177 accepts input of search conditions, executes search processing based on the accepted search conditions, and outputs the search results. The divided tablet image registration unit 178 is a processing unit that performs the registration processing and readout processing of the divided tablet image described in FIG. 29.

なお、グループのラベルが階層構造で定義されている場合、カプセル薬剤検索部173、無地薬剤検索部175、及び分割錠剤検索部177のそれぞれは、推定されたグループのラベルに基づき、検索条件を絞り込むことができる。 In addition, when the group labels are defined in a hierarchical structure, each of the capsule drug search unit 173, the plain drug search unit 175, and the divided tablet search unit 177 can narrow down the search conditions based on the estimated group labels.

カプセル薬剤特定処理部172、無地薬剤特定処理部174、及び分割錠剤特定処理部176のそれぞれによって実行されるグループ特有の検索GUIの提供を含む処理は、各グループにおける薬剤の種類の特定につながる処理(グループ特有の処理)の一例である。The processing including providing a group-specific search GUI performed by each of the capsule drug identification processing unit 172, the plain drug identification processing unit 174, and the divided tablet identification processing unit 176 is an example of processing that leads to the identification of the type of drug in each group (group-specific processing).

<撮影補助装置>
図33は、薬種識別装置100に入力する撮影画像を撮影するための撮影補助装置70の上面図である。また、図34は、図33の34-34線における断面図である。図34には、撮影補助装置70を用いて薬剤の画像を撮影するスマートフォン10も示している。
<Shooting support equipment>
Fig. 33 is a top view of a photographing assistant device 70 for photographing an image to be input to the drug type identification device 100. Fig. 34 is a cross-sectional view taken along line 34-34 in Fig. 33. Fig. 34 also shows a smartphone 10 that photographs an image of a drug using the photographing assistant device 70.

図33及び図34に示すように、撮影補助装置70は、筐体72、薬剤載置台74、主光源75、及び補助光源78を有する。図33では形状を正方形をベースとして記載しているが、筐体72、薬剤載置台74、及び補助光源78は長方形であってもよい。33 and 34, the photography assistance device 70 has a housing 72, a medicine mounting stand 74, a main light source 75, and an auxiliary light source 78. In FIG. 33, the shape is depicted as being based on a square, but the housing 72, the medicine mounting stand 74, and the auxiliary light source 78 may be rectangular.

筐体72は、水平に支持された正方形の底面板72Aと、底面板72Aの各辺の端部にそれぞれ垂直に固定された4枚の長方形の側面板72B、72C、72D、及び72Eとから構成される。The housing 72 is composed of a horizontally supported square bottom panel 72A and four rectangular side panels 72B, 72C, 72D, and 72E fixed vertically to the ends of each side of the bottom panel 72A.

薬剤載置台74は、筐体72の底面板72Aの上面に固定されている。薬剤載置台74は、薬剤を載置する面を有する部材であり、ここでは上面視が正方形のプラスチック製、又は紙製の薄板状部材であり、識別対象薬剤が載置される載置面は基準となるグレーの色を有している。基準となるグレーの色とは、0(黒)~255(白)の256の階調値で表現すると、例えば130~220の範囲の階調値であり、より好ましくは150~190の範囲の階調値である。The drug placement stand 74 is fixed to the upper surface of the bottom plate 72A of the housing 72. The drug placement stand 74 is a member having a surface on which drugs are placed, and in this case is a thin, plastic or paper plate-like member that is square when viewed from above, and the placement surface on which the drug to be identified is placed has a reference gray color. When expressed in 256 gradation values from 0 (black) to 255 (white), the reference gray color is, for example, a gradation value in the range of 130 to 220, and more preferably a gradation value in the range of 150 to 190.

一般的に、白背景又は黒背景で薬剤をスマートフォン10で撮影すると、自動露出調整機能によって色が飛んでしまい、十分な刻印情報を得ることができない場合がある。薬剤載置台74によれば、載置面がグレーの色であるので、色が飛ばずに刻印も詳細を捉えることができる。また、撮影画像に写ったグレーのピクセル値を取得し、真のグレーの階調値に対して補正すると、撮影画像の色調補正又は露光補正を実現することができる。Generally, when a medicine is photographed with a smartphone 10 against a white or black background, the automatic exposure adjustment function can wash out the colors, making it difficult to obtain sufficient imprint information. With the medicine placement stand 74, the placement surface is gray, so the colors do not wash out and the details of the imprint can be captured. In addition, by obtaining the gray pixel values captured in the captured image and correcting them against the true gray gradation values, color correction or exposure correction of the captured image can be achieved.

薬剤載置台74の載置面の四隅には、それぞれ黒色及び白色からなる基準マーカ74A、74B、74C、及び74Dが貼り付け、又は印刷により配置されている。基準マーカ74A、74B、74C、及び74Dは、何を用いてもよいが、ここでは検出のロバスト性が高く、シンプルな円形マーカを用いている。 Reference markers 74A, 74B, 74C, and 74D, each made of black and white, are attached or printed on the four corners of the mounting surface of the drug mounting table 74. Any material may be used for the reference markers 74A, 74B, 74C, and 74D, but simple circular markers with high detection robustness are used here.

基準マーカ74A、74B、74C、及び74Dは、縦方向及び横方向に3~30mmの大きさであることが好ましく、5~15mmの大きさであることがより好ましい。 It is preferable that the reference markers 74A, 74B, 74C, and 74D are 3 to 30 mm in size in the vertical and horizontal directions, and more preferably 5 to 15 mm in size.

また、基準マーカ74Aと基準マーカ74Bとの間の距離、及び基準マーカ74Aと基準マーカ74Dとの間の距離は、それぞれ20~100mmであることが好ましく、20~60mmであることがより好ましい。 In addition, it is preferable that the distance between reference marker 74A and reference marker 74B, and the distance between reference marker 74A and reference marker 74D are each 20 to 100 mm, and more preferably 20 to 60 mm.

さらに、図33に示すように、4つの基準マーカ74A、74B、74C、及び74Dを直線で結んで四角形の薬剤載置範囲を明示してもよい。図33では、4つの基準マーカ74A、74B、74C、及び74Dが正方形の頂点に配置される例を示すが、基準マーカ74A、74B、74C、及び74Dの配置形態は図33の例に限らない。例えば、4つの基準マーカ74A、74B、74C、及び74Dは長方形の頂点に配置されてもよい。 Furthermore, as shown in Fig. 33, the four reference markers 74A, 74B, 74C, and 74D may be connected by straight lines to clearly indicate a rectangular drug placement range. Fig. 33 shows an example in which the four reference markers 74A, 74B, 74C, and 74D are arranged at the vertices of a square, but the arrangement of the reference markers 74A, 74B, 74C, and 74D is not limited to the example in Fig. 33. For example, the four reference markers 74A, 74B, 74C, and 74D may be arranged at the vertices of a rectangle.

撮影対象の薬剤は、4つの基準マーカ74A、74B、74C、及び74Dを頂点とする四角形の領域(薬剤載置範囲)の内側に置かれる。図32では、5つの薬剤T1、T2、T3、T4、及びT5が撮影される例が示されている。The drug to be photographed is placed inside a rectangular area (drug placement range) with four reference markers 74A, 74B, 74C, and 74D as vertices. Figure 32 shows an example in which five drugs T1, T2, T3, T4, and T5 are photographed.

なお、薬剤載置台74は、筐体72の底面板72Aが兼ねていてもよい。In addition, the drug placement stand 74 may also be served as the bottom plate 72A of the housing 72.

主光源75、及び補助光源78は、識別対象薬剤の撮影画像を撮影するために使用される照明装置を構成する。主光源75は、識別対象薬剤の刻印を抽出するために使用される。補助光源78は、識別対象薬剤の色及び形状を正確に出すために使用される。撮影補助装置70は、補助光源78を備えなくてもよい。The main light source 75 and the auxiliary light source 78 constitute an illumination device used to capture an image of the drug to be identified. The main light source 75 is used to extract the markings on the drug to be identified. The auxiliary light source 78 is used to accurately capture the color and shape of the drug to be identified. The photography auxiliary device 70 does not need to be equipped with the auxiliary light source 78.

図35は、補助光源78を取り外した状態の撮影補助装置70の上面図である。 Figure 35 is a top view of the shooting assistance device 70 with the auxiliary light source 78 removed.

主光源75は、複数のLED76から構成される。LED76は、それぞれ発光部が直径10mm以内の白色光源である。ここでは、LED76は、4枚の長方形の側面板72B、72C、72D、及び72Eにそれぞれ6個ずつ、一定の高さに水平方向に並べて配置されている。これにより、主光源75は、識別対象薬剤に対して少なくとも4方向から照明光を照射する。なお、主光源75は、識別対象薬剤に対して少なくとも2方向から照明光を照射できればよい。The main light source 75 is composed of multiple LEDs 76. Each LED 76 is a white light source with a light-emitting portion having a diameter of 10 mm or less. Here, six LEDs 76 are arranged horizontally at a constant height on each of the four rectangular side panels 72B, 72C, 72D, and 72E. This allows the main light source 75 to irradiate illumination light onto the drug to be identified from at least four directions. It is sufficient for the main light source 75 to be able to irradiate illumination light onto the drug to be identified from at least two directions.

LED76が照射する照射光と識別対象薬剤の上面(水平面)とが成す角度θは、刻印を抽出するために10°から20°の範囲内であることが好ましい。なお、主光源75は、4枚の長方形の側面板72B、72C、72D、及び72Eにそれぞれ水平に配置された10mm幅以下の棒状の光源から構成されてもよい。The angle θ between the light emitted by the LED 76 and the top surface (horizontal plane) of the drug to be identified is preferably within the range of 10° to 20° in order to extract the marking. The main light source 75 may be composed of rod-shaped light sources with a width of 10 mm or less arranged horizontally on each of the four rectangular side panels 72B, 72C, 72D, and 72E.

主光源75は常時点灯していてもよい。これにより、撮影補助装置70は、識別対象薬剤に全方向から照明光を照射することが可能である。全てのLED76が点灯された状態で撮影された画像を全照明画像と呼ぶ。全照明画像によれば、印字が付加された識別対象薬剤の印字の抽出が容易になる。The main light source 75 may be constantly on. This allows the photography assistance device 70 to irradiate the drug to be identified from all directions with illumination light. An image taken with all LEDs 76 turned on is called a fully illuminated image. A fully illuminated image makes it easy to extract the printing on the drug to be identified that has printing added thereto.

主光源75は、タイミングによって点灯及び消灯するLED76が切り替えられてもよいし、不図示のスイッチにより点灯及び消灯するLED76が切り替えられてもよい。これにより、撮影補助装置70は、複数の主光源75により識別対象薬剤にそれぞれ異なる複数の方向から照明光を照射することが可能である。The main light source 75 may be an LED 76 that is switched on and off depending on the timing, or an LED 76 that is switched on and off by a switch (not shown). This allows the photography assistance device 70 to irradiate the drug to be identified with illumination light from multiple different directions using multiple main light sources 75.

例えば、側面板72Bに設けられた6個のLED76のみを点灯させた状態で撮影された画像を部分照明画像と呼ぶ。同様に、側面板72Cに設けられた6個のLED76のみを点灯させた状態で撮影された部分照明画像、側面板72Dに設けられた6個のLED76のみを点灯させた状態で撮影された部分照明画像、及び側面板72Eに設けられた6個のLED76のみを点灯させた状態で撮影された部分照明画像を撮影することで、それぞれ異なる方向から照明光が照射された4枚の部分照明画像を取得することができる。それぞれ異なる複数の方向から照射光を照射した複数の部分照明画像によれば、刻印が付加された識別対象薬剤の刻印の抽出が容易になる。For example, an image captured with only the six LEDs 76 on side panel 72B turned on is called a partial illumination image. Similarly, a partial illumination image captured with only the six LEDs 76 on side panel 72C turned on, a partial illumination image captured with only the six LEDs 76 on side panel 72D turned on, and a partial illumination image captured with only the six LEDs 76 on side panel 72E turned on can be captured to obtain four partial illumination images each illuminated with illumination light from a different direction. The partial illumination images illuminated with illumination light from a plurality of different directions facilitate the extraction of the markings of the identification target drug to which the markings are added.

補助光源78は、外形が正方形であり、その中心部に正方形の開口を有している平板状の平面白色光源である。補助光源78は、主光源75の照射光を拡散反射する無彩色の反射板であってもよい。補助光源78は、撮影方向(カメラの光軸方向)から均一に識別対象薬剤に照射光が照射されるように、スマートフォン10と薬剤載置台74との間に配置される。識別対象薬剤に照射される補助光源78の照射光の照度は、識別対象薬剤に照射される主光源75の照射光の照度よりも相対的に低い。The auxiliary light source 78 is a flat, planar white light source having a square outer shape and a square opening in the center. The auxiliary light source 78 may be an achromatic reflector that diffuses and reflects the light emitted by the main light source 75. The auxiliary light source 78 is disposed between the smartphone 10 and the drug placement table 74 so that the light is evenly emitted from the shooting direction (the optical axis direction of the camera) onto the drug to be identified. The illuminance of the light emitted by the auxiliary light source 78 onto the drug to be identified is relatively lower than the illuminance of the light emitted by the main light source 75 onto the drug to be identified.

図36は、他の実施形態に係る撮影補助装置80の上面図である。図37は、図36の37-37線における断面図である。図37には、撮影補助装置80を用いて薬剤の画像を撮影するスマートフォン10も示している。なお、図36及び図37について、図33及び図34と共通する部分には同一の符号を付し、その詳細な説明は省略する。図36及び図37に示すように、撮影補助装置80は、筐体82、主光源84、及び補助光源86を有する。撮影補助装置80は、補助光源86を備えなくてもよい。 Figure 36 is a top view of a photographing auxiliary device 80 according to another embodiment. Figure 37 is a cross-sectional view taken along line 37-37 in Figure 36. Figure 37 also shows a smartphone 10 that photographs an image of a drug using the photographing auxiliary device 80. Note that in Figures 36 and 37, parts common to Figures 33 and 34 are given the same reference numerals, and detailed descriptions thereof will be omitted. As shown in Figures 36 and 37, the photographing auxiliary device 80 has a housing 82, a main light source 84, and an auxiliary light source 86. The photographing auxiliary device 80 does not have to be equipped with the auxiliary light source 86.

筐体82は円筒形状を有し、水平に支持された円形の底面板82Aと、底面板82Aに垂直に固定された側面板82Bとから構成される。底面板82Aの上面には、薬剤載置台74が固定されている。The housing 82 has a cylindrical shape and is composed of a horizontally supported circular bottom plate 82A and a side plate 82B fixed vertically to the bottom plate 82A. The drug placement table 74 is fixed to the upper surface of the bottom plate 82A.

主光源84、及び補助光源86は、識別対象薬剤の撮影画像を撮影するために使用される照明装置を構成する。図38は、補助光源86を取り外した状態の撮影補助装置80の上面図である。The main light source 84 and the auxiliary light source 86 constitute an illumination device used to capture images of the drug to be identified. Figure 38 is a top view of the imaging auxiliary device 80 with the auxiliary light source 86 removed.

主光源84は、側面板82Bに24個のLED85が一定の高さに水平方向に一定間隔にリング状に配置されて構成される。主光源84は常時点灯していてもよいし、点灯及び消灯するLED85が切り替えられてもよい。The main light source 84 is configured by 24 LEDs 85 arranged in a ring shape at a constant height and at constant intervals in the horizontal direction on the side panel 82B. The main light source 84 may be always on, or the LEDs 85 that are turned on and off may be switched on and off.

補助光源86は、外形が円形であり、その中心部に円形の開口を有している平板状の平面白色光源である。補助光源86は、主光源84の照射光を拡散反射する無彩色の反射板であってもよい。識別対象薬剤に照射される補助光源86の照射光の照度は、識別対象薬剤に照射される主光源84の照射光の照度よりも相対的に低い。The auxiliary light source 86 is a flat, planar white light source having a circular outer shape and a circular opening in the center. The auxiliary light source 86 may be an achromatic reflector that diffusely reflects the light emitted by the main light source 84. The illuminance of the light emitted by the auxiliary light source 86 on the drug to be identified is relatively lower than the illuminance of the light emitted by the main light source 84 on the drug to be identified.

撮影補助装置70、及び撮影補助装置80は、識別対象薬剤を撮影するスマートフォン10を、標準となる撮影距離及び撮影視点の位置で固定する不図示の固定機構を備えてもよい。固定機構は、スマートフォン10の撮影レンズ50の焦点距離に応じて識別対象薬剤及びカメラの間の距離を変更可能に構成されてもよい。The photographing assistant device 70 and the photographing assistant device 80 may be provided with a fixing mechanism (not shown) that fixes the smartphone 10 that photographs the drug to be identified at a standard shooting distance and shooting viewpoint position. The fixing mechanism may be configured to be able to change the distance between the drug to be identified and the camera according to the focal length of the photographing lens 50 of the smartphone 10.

〔照明装置〕
図39は、他の実施形態に係る撮影補助装置としての照明装置81の構成を示す断面図である。図39に示す照明装置81は、図37及び図38で説明した撮影補助装置80の構成から底面板82Aと薬剤載置台74とを削除した構成となっている。その他の構成は、撮影補助装置80の構成と同様であってよい。なお、側面のLED85を覆う不図示の拡散板カバーなどを配置してもよい。
[Lighting device]
Fig. 39 is a cross-sectional view showing the configuration of an illumination device 81 as a photographing auxiliary device according to another embodiment. The illumination device 81 shown in Fig. 39 has a configuration in which the bottom plate 82A and the medicine placement table 74 are removed from the configuration of the photographing auxiliary device 80 described in Figs. 37 and 38. The other configuration may be the same as that of the photographing auxiliary device 80. In addition, a diffusion plate cover (not shown) that covers the LED 85 on the side may be provided.

<基準マーカの例>
図40は、円形の円形マーカMC1を用いた薬剤載置台74の上面図である。図40に示すように、薬剤載置台74には、基準マーカ74A、74B、74C、及び74Dとして、円形の円形マーカMC1が四隅に配置されている。図40の左図F40Aは、基準マーカ74A、74B、74C、及び74Dの中心が正方形の4つの頂点を構成する例を示しており、図40の右図F40Bは、基準マーカ74A、74B、74C、及び74Dの中心が長方形の4つの頂点を構成する例を示している。基準マーカを4つ配置する理由は、標準化のための透視変換行列を決定するのに4点の座標が必要になるためである。
<Example of fiducial marker>
Fig. 40 is a top view of the medicine placement table 74 using a circular marker MC1. As shown in Fig. 40, the medicine placement table 74 has circular markers MC1 arranged at the four corners as reference markers 74A, 74B, 74C, and 74D. The left diagram F40A in Fig. 40 shows an example in which the centers of the reference markers 74A, 74B, 74C, and 74D form the four vertices of a square, and the right diagram F40B in Fig. 40 shows an example in which the centers of the reference markers 74A, 74B, 74C, and 74D form the four vertices of a rectangle. The reason for arranging four reference markers is that the coordinates of four points are required to determine a perspective transformation matrix for standardization.

ここでは、4つの基準マーカ74A、74B、74C、及び74Dは同じ大きさ、及び同じ色であるが、大きさ、及び色は異なっていてもよい。なお、大きさが異なる場合は、隣り合う基準マーカ74A、74B、74C、及び74Dの中心が正方形、又は長方形の4つの頂点を構成するように配置されることが好ましい。基準マーカの大きさ、又は色を異ならせることで、撮影方向の特定が容易になる。Here, the four reference markers 74A, 74B, 74C, and 74D are the same size and color, but the sizes and colors may be different. If the sizes are different, it is preferable to arrange the adjacent reference markers 74A, 74B, 74C, and 74D so that their centers form the four vertices of a square or rectangle. By making the sizes or colors of the reference markers different, it becomes easier to identify the shooting direction.

また、円形マーカMC1は、少なくとも4つ配置されればよく、5つ以上配置されてもよい。5つ以上配置される場合、4つの円形マーカMC1の中心が正方形、又は長方形の4つの頂点を構成し、さらに追加される円形マーカMC1の中心が、正方形、又は長方形の辺上に配置されることが好ましい。5つ以上の基準マーカを配置することで、撮影方向の特定が容易になる。また、5つ以上の基準マーカを配置することで、いずれかの基準マーカの検出が失敗した場合であっても、標準化のための透視変換行列を求めるのに必要な最低4点を同時検出する確率を高めることができ、再撮影する手間を減らす等のメリットがある。 In addition, at least four circular markers MC1 may be arranged, and five or more may be arranged. When five or more are arranged, it is preferable that the centers of the four circular markers MC1 form the four vertices of a square or a rectangle, and the centers of the additional circular markers MC1 are arranged on the sides of the square or the rectangle. By arranging five or more reference markers, it becomes easier to identify the shooting direction. In addition, by arranging five or more reference markers, even if detection of any of the reference markers fails, it is possible to increase the probability of simultaneously detecting the minimum four points required to obtain the perspective transformation matrix for standardization, and there is an advantage in that the effort of re-shooting is reduced.

円形マーカMC1は、直径が相対的に大きい外側の第1真円と、第1真円と同心状に配置され、第1真円よりも直径が相対的に小さい内側の第2真円とを備える。すなわち、第1真円及び第2真円は、同一の中心に配置された半径が異なる円である。また、円形マーカMC1は、第2真円の内側が白色であり、第1真円の内側、かつ第2真円の外側の領域が黒色に塗り潰されている。 The circular marker MC1 comprises an outer first perfect circle with a relatively large diameter, and an inner second perfect circle arranged concentrically with the first perfect circle and with a relatively smaller diameter than the first perfect circle. In other words, the first and second perfect circles are circles with different radii arranged at the same center. In addition, the inside of the second perfect circle of the circular marker MC1 is white, and the area inside the first perfect circle and outside the second perfect circle is filled in black.

第1真円の直径は、3ミリメートル~20ミリメートルであることが好ましい。また、第2真円の直径は、0.5ミリメートル~5ミリメートルであることが好ましい。さらに、第1真円と第2真円の直径の比率(第1真円の直径/第2真円の直径)は、2~10であることが好ましい。It is preferable that the diameter of the first true circle is 3 to 20 millimeters. It is also preferable that the diameter of the second true circle is 0.5 to 5 millimeters. Furthermore, it is preferable that the ratio of the diameters of the first true circle and the second true circle (diameter of the first true circle/diameter of the second true circle) is 2 to 10.

標準化前画像における真の物体の中心点と、機械学習において推定した中心点の座標とは、ずれる可能性がある。円形マーカMC1のように、内側の第2真円の中心点の座標を教師データとして与えることにより、機械学習に真の物体の中心座標の推定を正確かつ容易にさせることができる。また、外側の相対的に大きな第1真円の存在効果により、円形マーカMC1に付着したゴミ等による誤検出の可能性も大幅に少なくすることができる。 There is a possibility that the coordinates of the center point of the true object in the pre-standardized image may differ from the coordinates of the center point estimated by machine learning. By providing the coordinates of the center point of the inner second perfect circle as training data, as in the case of the circular marker MC1, machine learning can accurately and easily estimate the center coordinates of the true object. In addition, the effect of the presence of the relatively large outer first perfect circle can significantly reduce the possibility of false detection due to dust or the like attached to the circular marker MC1.

図41は、変形例に係る円形マーカを用いた薬剤載置台74の上面図である。図41の左図F41Aは、基準マーカ74A、74B、74C、及び74Dとして円形マーカMC2を用いた例を示す図である。円形マーカMC2は、黒く塗り潰された真円の内側に、互いに直交する2本の白い直線からなるクロス型(十字型)の図形が、2本の直線の交点が真円の中心と一致するように配置されている。円形マーカMC2の基準マーカ74A、74B、74C、及び74Dは、それぞれの中心が正方形の4つの頂点を構成するように配置され、円形マーカMC2のクロス型の図形の直線は、この正方形の辺と平行に配置される。円形マーカMC2の基準マーカ74A、74B、74C、及び74Dは、それぞれの中心が長方形の4つの頂点を構成するように配置されてもよい。円形マーカMC2のクロス型の図形の線の太さは、適宜決めることができる。 Figure 41 is a top view of the medicine placement table 74 using a circular marker according to a modified example. The left diagram F41A of Figure 41 is a diagram showing an example in which the circular marker MC2 is used as the reference markers 74A, 74B, 74C, and 74D. The circular marker MC2 is arranged inside a perfect circle filled with black, with a cross-shaped figure consisting of two white straight lines that intersect at right angles, so that the intersection of the two straight lines coincides with the center of the perfect circle. The reference markers 74A, 74B, 74C, and 74D of the circular marker MC2 are arranged so that their respective centers form the four vertices of a square, and the straight lines of the cross-shaped figure of the circular marker MC2 are arranged parallel to the sides of this square. The reference markers 74A, 74B, 74C, and 74D of the circular marker MC2 may be arranged so that their respective centers form the four vertices of a rectangle. The thickness of the lines of the cross-shaped figure of the circular marker MC2 can be determined appropriately.

一方、図41の右図F40Bは、基準マーカ74A、74B、74C、及び74Dとして円形マーカMC3を用いた例を示す図である。円形マーカMC3は、同一の中心に配置された半径が異なる2つの真円を備え、内側の真円の内側が白色であり、外側の真円の内側、かつ内側の真円の外側の領域が黒色に塗り潰されている。さらに、円形マーカMC3は、内側の真円の内側に、互いに直交する2本の黒い直線からなるクロス型の図形が、2本の直線の交点が真円の中心と一致するように配置されている。円形マーカMC3の基準マーカ74A、74B、74C、及び74Dは、それぞれの中心が正方形の4つの頂点を構成するように配置され、円形マーカMC3のクロス型の図形の直線は、この正方形の辺と平行に配置される。円形マーカMC3の基準マーカ74A、74B、74C、及び74Dは、それぞれの中心が長方形の4つの頂点を構成するように配置されてもよい。円形マーカMC3のクロス型の図形の線の太さは、適宜決めることができる。 On the other hand, the right diagram F40B of FIG. 41 is a diagram showing an example in which a circular marker MC3 is used as the reference markers 74A, 74B, 74C, and 74D. The circular marker MC3 has two perfect circles with different radii arranged at the same center, the inside of the inner perfect circle is white, and the inside of the outer perfect circle and the outside of the inner perfect circle are filled in black. Furthermore, the circular marker MC3 has a cross-shaped figure consisting of two black straight lines that are perpendicular to each other arranged inside the inner perfect circle so that the intersection of the two straight lines coincides with the center of the perfect circle. The reference markers 74A, 74B, 74C, and 74D of the circular marker MC3 are arranged so that their respective centers form the four vertices of a square, and the straight lines of the cross-shaped figure of the circular marker MC3 are arranged parallel to the sides of this square. The reference markers 74A, 74B, 74C, and 74D of the circular marker MC3 may be arranged so that their respective centers form the four vertices of a rectangle. The thickness of the lines of the cross-shaped figure of the circular marker MC3 can be determined appropriately.

円形マーカMC2、及びMC3によれば、中心点座標の推定精度を高めることができる。また、円形マーカMC2、及びMC3によれば、薬剤と見た目が異なるので、マーカを認識しやすくなる。 The circular markers MC2 and MC3 can improve the accuracy of estimating the center point coordinates. In addition, the circular markers MC2 and MC3 have a different appearance from the medication, making the markers easier to recognize.

図42は、外形が四角形の基準マーカの具体例を示す図である。図41の左図F42Aは、四角形マーカMS1を示している。四角形マーカMS1は、一辺の長さが相対的に大きい外側の正方形SQ1と、正方形SQ1と同心状に配置され、正方形SQ1よりも一辺の長さが相対的に小さい内側の正方形SQ2を備える。すなわち、正方形SQ1及びSQ2は、同一の中心(重心)に配置された一辺の長さが異なる四角形である。また、四角形マーカMS1は、正方形SQ2の内側が白色であり、正方形SQ1の内側、かつ正方形SQ2の外側の領域が黒色に塗り潰されている。 Figure 42 is a diagram showing a specific example of a reference marker with a rectangular outline. The left diagram F42A in Figure 41 shows a rectangular marker MS1. The rectangular marker MS1 comprises an outer square SQ1 with a relatively long side length, and an inner square SQ2 that is arranged concentrically with the square SQ1 and has a relatively shorter side length than the square SQ1. In other words, the squares SQ1 and SQ2 are quadrangles with different side lengths that are arranged at the same center (center of gravity). Furthermore, in the rectangular marker MS1, the inside of the square SQ2 is white, and the area inside the square SQ1 and outside the square SQ2 is filled in black.

正方形SQ1の一辺の長さは、3ミリメートル~20ミリメートルであることが好ましい。また、正方形SQ2の一辺の長さは、0.5ミリメートル~5ミリメートルであることが好ましい。さらに、正方形SQ1と正方形SQ2の一辺の長さの比率(正方形SQ1の一辺の長さ/正方形SQ2の一辺の長さ)は、2~10であることが好ましい。より中心座標の推定精度を高める目的で、正方形SQ2の内側に正方形SQ2よりも一辺の長さが相対的に小さい不図示の黒色の矩形(例えば正方形)を同心状に配置してもよい。The length of one side of the square SQ1 is preferably 3 to 20 millimeters. The length of one side of the square SQ2 is preferably 0.5 to 5 millimeters. The ratio of the lengths of one side of the squares SQ1 and SQ2 (length of one side of the square SQ1/length of one side of the square SQ2) is preferably 2 to 10. In order to further improve the accuracy of estimating the central coordinates, a black rectangle (e.g., a square) (not shown) with a side length relatively smaller than that of the square SQ2 may be placed concentrically inside the square SQ2.

図42の右図F42Bは、四角形の四角形マーカMS1を用いた薬剤載置台74の上面図を示している。右図F41Bに示すように、薬剤載置台74には、基準マーカ74A、74B、74C、及び74Dとして、四角形の四角形マーカMS1が四隅に配置されている。ここでは、隣り合う基準マーカ74A、74B、74C、及び74Dの中心を結ぶ線が正方形を構成する例を示しているが、隣り合う基準マーカ74A、74B、74C、及び74Dの中心を結ぶ線が長方形を構成してもよい。 The right diagram F42B of Figure 42 shows a top view of the medicine mounting table 74 using a quadrilateral marker MS1. As shown in the right diagram F41B, the medicine mounting table 74 has quadrilateral markers MS1 arranged at its four corners as reference markers 74A, 74B, 74C, and 74D. Here, an example is shown in which the lines connecting the centers of adjacent reference markers 74A, 74B, 74C, and 74D form a square, but the lines connecting the centers of adjacent reference markers 74A, 74B, 74C, and 74D may also form a rectangle.

図43は、他の変形例に係る円形マーカを用いた薬剤載置台74の上面図である。図42の左図F43Aは、基準マーカ74A、74B、74C、及び74Dとして円形マーカMC4を用いた例を示す図である。円形マーカMC4は、直径が相対的に大きい外側の第1真円と、第1真円と同心状に配置され、第1真円よりも直径が相対的に小さい内側の第2真円と、第2真円の内側に第2真円と同心状に配置され、第2真円よりも直径が相対的に小さい黒色の円(第3真円)とを備える。円形マーカMC4は、第2真円の内側が白色であり、第1真円の内側、かつ第2真円の外側の領域が黒色に塗り潰されている。 Figure 43 is a top view of the medicine placement table 74 using a circular marker according to another modified example. The left diagram F43A in Figure 42 is a diagram showing an example in which a circular marker MC4 is used as the reference markers 74A, 74B, 74C, and 74D. The circular marker MC4 includes an outer first perfect circle with a relatively large diameter, an inner second perfect circle arranged concentrically with the first perfect circle and with a relatively smaller diameter than the first perfect circle, and a black circle (third perfect circle) arranged concentrically with the second perfect circle inside the second perfect circle and with a relatively smaller diameter than the second perfect circle. The inside of the second perfect circle of the circular marker MC4 is white, and the area inside the first perfect circle and outside the second perfect circle is filled in black.

第1真円の直径は、3ミリメートル~20ミリメートルであることが好ましい。また、第2真円の直径は、5ミリメートル~18ミリメートルであることが好ましい。第3真円の直径は0.5ミリメートル~5ミリメートルであることが好ましい。さらに、第1真円と第2真円の直径の比率(第1真円の直径/第2真円の直径)は、1.1~3であることが好ましい。さらに、第2真円と第3真円の直径の比率(第2真円の直径/第3真円の直径)は、2~10であることが好ましい。 The diameter of the first true circle is preferably 3 to 20 millimeters. The diameter of the second true circle is preferably 5 to 18 millimeters. The diameter of the third true circle is preferably 0.5 to 5 millimeters. Furthermore, the ratio of the diameters of the first true circle to the second true circle (diameter of the first true circle/diameter of the second true circle) is preferably 1.1 to 3. Furthermore, the ratio of the diameters of the second true circle to the third true circle (diameter of the second true circle/diameter of the third true circle) is preferably 2 to 10.

図43の左図F43Aは、基準マーカ74A、74B、74C、及び74Dの中心が正方形の4つの頂点を構成する例を示しており、図43の右図F43Bは、基準マーカ74A、74B、74C、及び74Dの中心が長方形の4つの頂点を構成する例を示している。4つの円形マーカMC4を縦方向及び横方向に結ぶ直線が表示される。円形マーカMC4によれば、中心点座標の推定精度を高めることができる。また、円形マーカMC4を直線で結ぶことにより、マーカ及び薬剤載置範囲を認識しやすくなり、撮影画像に写る直線によって撮影画像の歪みを補正したり、標準化画像の切り出し範囲を特定したりするなどの対応も可能である。なお、これらの直線はなくてもよい。 The left diagram F43A in FIG. 43 shows an example in which the centers of the reference markers 74A, 74B, 74C, and 74D form the four vertices of a square, and the right diagram F43B in FIG. 43 shows an example in which the centers of the reference markers 74A, 74B, 74C, and 74D form the four vertices of a rectangle. Straight lines connecting the four circular markers MC4 in the vertical and horizontal directions are displayed. The circular markers MC4 can improve the estimation accuracy of the center point coordinates. In addition, by connecting the circular markers MC4 with straight lines, it becomes easier to recognize the markers and the drug placement range, and it is also possible to correct the distortion of the captured image using the straight lines in the captured image or specify the cut-out range of the standardized image. These straight lines are not necessary.

図44は、四角形の基準マーカの他の具体例を示す図である。図44の左図F44Aは、四角形マーカMS2を示している。四角形マーカMS2は、一辺の長さが相対的に大きい外側の正方形SQ1と、正方形SQ1と同心状に配置され、正方形SQ1よりも一辺の長さが相対的に小さい内側の正方形SQ2と、正方形SQ2の内側に正方形SQ2と同心状に配置され、正方形SQ2よりも一辺の長さが相対的に小さい黒色の正方形SQ3と、を備える。正方形SQ1の一辺の長さは、3ミリメートル~20ミリメートルであることが好ましい。また、正方形SQ2の一辺の長さは、5ミリメートル~18ミリメートルであることが好ましい。正方形SQ3の一辺の長さは、0.5ミリメートル~5ミリメートルであることが好ましい。さらに、正方形SQ1と正方形SQ2の一辺の長さの比率(正方形SQ1の一辺の長さ/正方形SQ2の一辺の長さ)は、1.1~3であることが好ましい。正方形SQ2と正方形SQ3の一辺の長さの比率(正方形SQ2の一辺の長さ/正方形SQ3の一辺の長さ)は、2~10であることが好ましい。 Figure 44 shows another specific example of a quadrilateral reference marker. The left diagram F44A in Figure 44 shows a quadrilateral marker MS2. The quadrilateral marker MS2 includes an outer square SQ1 with a relatively large side length, an inner square SQ2 arranged concentrically with the square SQ1 and with a relatively smaller side length than the square SQ1, and a black square SQ3 arranged concentrically inside the square SQ2 and with a relatively smaller side length than the square SQ2. The length of one side of the square SQ1 is preferably 3 to 20 millimeters. The length of one side of the square SQ2 is preferably 5 to 18 millimeters. The length of one side of the square SQ3 is preferably 0.5 to 5 millimeters. Furthermore, the ratio of the lengths of one side of the squares SQ1 and SQ2 (the length of one side of the square SQ1/the length of one side of the square SQ2) is preferably 1.1 to 3. It is preferable that the ratio of the length of one side of the square SQ2 to the length of one side of the square SQ3 (length of one side of the square SQ2/length of one side of the square SQ3) be 2-10.

図44の右図F44Bは、四角形の四角形マーカMS2を用いた薬剤載置台74の上面図を示している。右図F44Bに示すように、薬剤載置台74には、基準マーカ74A、74B、74C、及び74Dとして、四角形の四角形マーカMS2が四隅に配置されている。ここでは、隣り合う基準マーカ74A、74B、74C、及び74Dの中心を結ぶ線が正方形を構成する例を示しているが、隣り合う基準マーカ74A、74B、74C、及び74Dの中心を結ぶ線が長方形を構成してもよい。また、図43と同様に、4つの四角形マーカMS2を縦方向及び横方向に結ぶ直線が表示されている。 The right diagram F44B of FIG. 44 shows a top view of the medicine placement table 74 using a quadrilateral marker MS2. As shown in the right diagram F44B, the medicine placement table 74 has quadrilateral markers MS2 arranged at the four corners as reference markers 74A, 74B, 74C, and 74D. Here, an example is shown in which the lines connecting the centers of adjacent reference markers 74A, 74B, 74C, and 74D form a square, but the lines connecting the centers of adjacent reference markers 74A, 74B, 74C, and 74D may form a rectangle. Also, as in FIG. 43, straight lines connecting the four quadrilateral markers MS2 in the vertical and horizontal directions are displayed.

四角形マーカMS2によれば、中心点座標の推定精度を高めることができる。また、四角形マーカMS2を直線で結ぶことにより、マーカ及び薬剤載置範囲を認識しやすくなる。なお、これらの直線はなくてもよい。 The square marker MS2 can improve the accuracy of estimating the center point coordinates. In addition, by connecting the square markers MS2 with straight lines, it becomes easier to recognize the markers and the drug placement range. Note that these straight lines do not have to be included.

薬剤載置台74には、円形マーカMCと四角形マーカMSとが混在していてもよい。円形マーカMCと四角形マーカMSとを混在させることで、撮影方向の特定が容易になる等の効果が期待できる。 The medicine placement table 74 may contain a mixture of circular markers MC and square markers MS. By mixing circular markers MC and square markers MS, it is expected that the effect of making it easier to identify the shooting direction can be achieved.

さらに、四角形マーカよりも円形マーカを採用することが好ましい。基準マーカの検出をスマートフォン等の携帯端末装置で行う場合、下記の(a)~(c)の制約が存在するためである。
(a)携帯端末装置ではアプリに容量制限があるケースがあるため、マーカ検出と薬剤検出を同一の学習済みモデルで行うことが望ましい。
(b)薬剤検出では、楕円錠剤の切り抜き画像に他の薬剤の一部が入らないよう、回転ありのバウンディングボックスを使用するのが望ましい。この場合、要請(a)より、マーカ検出に対しても回転角度についての合理的な教師データを用意する必要がある。
(c)四角形マーカの場合、4回対称性によるバウンディングボックスの回転角度決定の任意性が存在するために、マーカ検出時の入力画像である標準化前画像における四角形マーカの回転角度に対する合理的な教師データ作成が困難である。対して、円形マーカであれば常に回転角度を0度とした合理的な教師データ作成が可能である。
Furthermore, it is preferable to employ circular markers rather than rectangular markers, because when detecting the reference markers using a mobile terminal device such as a smartphone, the following constraints (a) to (c) exist.
(a) Since there may be capacity limitations on apps on mobile terminal devices, it is desirable to perform marker detection and drug detection using the same trained model.
(b) In drug detection, it is desirable to use a bounding box with rotation so that parts of other drugs do not enter the cut-out image of the oval tablet. In this case, due to requirement (a), it is necessary to prepare reasonable training data for the rotation angle for marker detection as well.
(c) In the case of a rectangular marker, because of the arbitrariness of the rotation angle of the bounding box due to four-fold symmetry, it is difficult to create reasonable training data for the rotation angle of the rectangular marker in the pre-standardized image that is the input image when the marker is detected. In contrast, for a circular marker, it is possible to create reasonable training data with a rotation angle of 0 degrees.

また、円形マーカを同心状にすることで、マーカの中心座標の推定精度を高めることができる。標準化前画像では単純な円形マーカは形が歪み、中心座標推定に誤差が生じやすいが、同心円の内円はより範囲が狭い為、歪んだ標準化前画像であっても学習済みモデルが中心座標を特定しやすい。さらに、同心円の外円は、構造が大きく学習済みモデルが見つけやすい、ノイズ・ゴミに対して頑健になる、等のメリットがある。なお、四角形マーカについても、同心状とすることによりマーカの中心点座標の推定精度を高めることが可能である。 In addition, by making circular markers concentric, the accuracy of estimating the center coordinates of the markers can be improved. In pre-standardized images, simple circular markers are distorted in shape, which makes it easy for errors to occur in estimating the center coordinates, but the inner circle of the concentric circles has a narrower range, making it easier for the trained model to identify the center coordinates even in distorted pre-standardized images. Furthermore, the outer circle of the concentric circles has the advantage that it has a large structure, making it easier for the trained model to find, and is robust against noise and debris. It is also possible to improve the accuracy of estimating the center coordinates of square markers by making them concentric.

<薬剤載置台の他の態様>
撮影補助装置の薬剤載置台の載置面は、薬剤を載置するくぼみ構造が設けられていてもよい。くぼみ構造は、くぼみ、溝、凹み、及び穴を含む。
<Other aspects of the medicine placement table>
The placement surface of the medicine placement table of the photographing assistant device may be provided with a recess structure for placing the medicine. The recess structure includes a recess, a groove, a depression, and a hole.

図45は、薬剤載置台74(図33参照)に代えて、又は薬剤載置台74に加えて使用される薬剤載置台であって、くぼみ構造が設けられた薬剤載置台410を示す図である。薬剤載置台410は、紙、合成樹脂、繊維、ゴム、又はガラスによって構成される。図45の左図F45Aは、薬剤載置台410の上面図である。左図F45Aに示すように、薬剤載置台410の載置面は、グレーの色を有し、四隅には基準マーカ74A、74B、74C、及び74Dが配置されている。図45ではマーカの形状を円形マーカMC1を用いて示しているが、円形マーカMC1に限らず、円形マーカMC2、MC3、MC4、四角形マーカMS1、又はMS2であってもよい。 Figure 45 shows a medicine mounting table 410 having a recess structure, which is used in place of or in addition to the medicine mounting table 74 (see Figure 33). The medicine mounting table 410 is made of paper, synthetic resin, fiber, rubber, or glass. The left diagram F45A in Figure 45 is a top view of the medicine mounting table 410. As shown in the left diagram F45A, the mounting surface of the medicine mounting table 410 has a gray color, and reference markers 74A, 74B, 74C, and 74D are arranged at the four corners. In Figure 45, the shape of the marker is shown using a circular marker MC1, but it is not limited to the circular marker MC1, and may be a circular marker MC2, MC3, MC4, a square marker MS1, or MS2.

さらに、薬剤載置台410の載置面には、くぼみ構造として3行×3列の計9つのくぼみ410A、410B、410C、410D、410E、410F、410G、410H、及び410Iが設けられている。くぼみ410A~410Iは、上面視においてそれぞれ同じ大きさの円形である。Furthermore, the placement surface of the medicine placement table 410 has a recess structure of 3 rows and 3 columns, totaling 9 recesses 410A, 410B, 410C, 410D, 410E, 410F, 410G, 410H, and 410I. The recesses 410A to 410I are each circular and of the same size when viewed from above.

図45の右図F45Bは、薬剤載置台410の44-44線における断面図である。右図F45Bに示すように、くぼみ410A、410B、及び410Cは、半球状の底面を有し、それぞれ同じ深さである。くぼみ410D~410Iについても同様である。底面は完全な半球状である必要はなく、一定の曲率半径を持つ凹状の曲面あるいは緩やかに変化する曲率半径を持つ凹状の曲面であってもよい。 The right diagram F45B of Figure 45 is a cross-sectional view of the medicine placement platform 410 taken along line 44-44. As shown in the right diagram F45B, the recesses 410A, 410B, and 410C have hemispherical bottom surfaces and are all the same depth. The same is true for the recesses 410D to 410I. The bottom surface does not have to be a perfect hemisphere, but may be a concave curved surface with a constant radius of curvature or a concave curved surface with a gradually changing radius of curvature.

また、右図F45Bには、くぼみ410A、410B、及び410Cにそれぞれ載置された錠剤T51、T52、及びT53を示している。錠剤T51、及びT52は、それぞれ上面視において円形であり、側面視において矩形の薬剤である。また、錠剤T53は、上面視において円形であり、側面視において楕円形の薬剤である。上面視において、錠剤T51、及び錠剤T53は同じ大きさであり、錠剤T52は錠剤T51、及び錠剤T53よりも相対的に小さい。右図F45Bに示すように、錠剤T51~T53は、くぼみ410A~410Cに嵌ることで、静置される。錠剤T51~T53は、上面視において円形であればよく、側面視において左右が直線状で上下が円弧状であってもよい。 Also, right figure F45B shows tablets T51, T52, and T53 placed in recesses 410A, 410B, and 410C, respectively. Tablets T51 and T52 are each a medicine that is circular when viewed from above and rectangular when viewed from the side. Also, tablet T53 is a medicine that is circular when viewed from above and elliptical when viewed from the side. When viewed from above, tablets T51 and T53 are the same size, and tablet T52 is relatively smaller than tablets T51 and T53. As shown in right figure F45B, tablets T51 to T53 are placed in place by fitting into recesses 410A to 410C. Tablets T51 to T53 may be circular when viewed from above, or may be linear on the left and right and arc-shaped on the top and bottom when viewed from the side.

このように、薬剤載置台410によれば、載置面に半球状のくぼみ構造を備えたことで、上面視において円形の薬剤が移動することを防止し、静置することができる。また、薬剤の撮影時の位置をくぼみ構造の位置に決定することができるので、薬剤の領域の検出が容易になる。In this way, the medicine placement table 410 has a hemispherical recess structure on the placement surface, which prevents the circular medicine from moving when viewed from above and allows it to remain stationary. In addition, the position of the medicine when photographing it can be determined to be the position of the recess structure, making it easy to detect the area of the medicine.

薬剤載置台は、カプセル薬剤のような、転がるタイプの薬剤向けのくぼみ構造を有してもよい。図46は、カプセル薬剤向けのくぼみ構造が設けられた薬剤載置台412を示す図である。なお、図45と共通する部分には同一の符号を付し、その詳細な説明は省略する。The medicine placement table may have a recess structure for rolling medicines such as capsule medicines. Figure 46 is a diagram showing a medicine placement table 412 provided with a recess structure for capsule medicines. Note that parts common to Figure 45 are given the same reference numerals, and detailed descriptions thereof are omitted.

図46の左図F46Aは、薬剤載置台412の上面図である。左図F46Aに示すように、薬剤載置台412の載置面には、くぼみ構造として3行×2列の計6つのくぼみ412A、412B、412C、412D、412E、及び412Fが設けられている。くぼみ412A~412Fは、それぞれ上面視において同じ大きさの長方形である。くぼみは完全な半球状である必要はなく、一定の曲率半径を持つ凹状の曲面あるいは緩やかに変化する曲率半径を持つ凹状の曲面であってもよい。 The left diagram F46A in Figure 46 is a top view of the medicine mounting stand 412. As shown in the left diagram F46A, the mounting surface of the medicine mounting stand 412 has a recess structure with a total of six recesses 412A, 412B, 412C, 412D, 412E, and 412F arranged in three rows and two columns. The recesses 412A to 412F are each rectangular of the same size when viewed from above. The recesses do not need to be perfectly hemispherical, and may be concave curved surfaces with a constant radius of curvature or concave curved surfaces with a gradually changing radius of curvature.

図46の右図F46Bは、薬剤載置台412の46-46線における断面図である。右図F46Bに示すように、くぼみ412A、412B、及び412Cは、半円筒状の底面を有し、それぞれ同じ深さである。くぼみ412D~412Fについても同様である。また、F63Bには、くぼみ412A、412B、及び412Cにそれぞれ載置されたカプセル薬剤CP1、CP2、及びCP3を示している。カプセル薬剤CP1~CP3は、両端(両底面)が半球状の円柱形であり、それぞれ直径が異なる。右図F46Bに示すように、カプセル薬剤CP1~CP3は、くぼみ412A~412Cに嵌ることで、静置される。 The right diagram F46B of Figure 46 is a cross-sectional view of the medicine placement stage 412 taken along line 46-46. As shown in the right diagram F46B, the recesses 412A, 412B, and 412C have semi-cylindrical bottoms and are all the same depth. The same is true for the recesses 412D to 412F. Also, F63B shows capsule medicines CP1, CP2, and CP3 placed in recesses 412A, 412B, and 412C, respectively. The capsule medicines CP1 to CP3 are cylindrical with hemispherical ends (bottoms) and each has a different diameter. As shown in the right diagram F46B, the capsule medicines CP1 to CP3 are placed in place by fitting into the recesses 412A to 412C.

このように、薬剤載置台412によれば、載置面に半円筒状のくぼみ構造を備えたことで、円柱形のカプセル薬剤が移動したり転がったりすることを防止し、静置することができる。また、薬剤の撮影時の位置をくぼみ構造の位置に決定することができるので、薬剤の領域の検出が容易になる。In this way, the medicine placement table 412 has a semi-cylindrical recess structure on the placement surface, which prevents cylindrical capsule medicine from moving or rolling and allows it to remain still. In addition, the position of the medicine when photographing can be determined to be the position of the recess structure, making it easy to detect the area of the medicine.

また、薬剤載置台は、楕円形の錠剤向けのくぼみ構造を有してもよい。図47は、楕円形の錠剤向けのくぼみ構造が設けられた薬剤載置台414を示す図である。なお、図46と共通する部分には同一の符号を付し、その詳細な説明は省略する。The medicine mounting table may also have a recess structure for oval tablets. Figure 47 shows medicine mounting table 414 having a recess structure for oval tablets. Note that parts common to Figure 46 are given the same reference numerals and detailed descriptions thereof are omitted.

図47の左図F47Aは、薬剤載置台414の上面図である。左図F47Aに示すように、薬剤載置台414の載置面には、くぼみ構造として3行×2列の計6つのくぼみ414A、414B、414C、414D、414E、及び414Fが設けられている。くぼみ414A~414Fは、それぞれ上面視において長方形である。 The left diagram F47A in Fig. 47 is a top view of the medicine mounting stand 414. As shown in the left diagram F47A, the mounting surface of the medicine mounting stand 414 has a recess structure of three rows and two columns, totaling six recesses 414A, 414B, 414C, 414D, 414E, and 414F. Each of the recesses 414A to 414F is rectangular when viewed from above.

くぼみ414A、及び414Bは同じ大きさである。くぼみ414C、及び414Dは同じ大きさであり、くぼみ414A、及び414Bより相対的に小さい。くぼみ414E、及び414Fは同じ大きさであり、くぼみ414C、及び414Dより相対的に小さい。 The recesses 414A and 414B are the same size. The recesses 414C and 414D are the same size and relatively smaller than the recesses 414A and 414B. The recesses 414E and 414F are the same size and relatively smaller than the recesses 414C and 414D.

また、左図F47Aには、くぼみ414B、414D、及び414Fにそれぞれ載置された錠剤T61、T62、及びT63を示している。左図F47Aに示すように、くぼみ414B、414D、及び414Fは、それぞれ錠剤T61、T62、及びT63に対応した大きさである。 Furthermore, the left-hand figure F47A shows tablets T61, T62, and T63 placed in recesses 414B, 414D, and 414F, respectively. As shown in the left-hand figure F47A, recesses 414B, 414D, and 414F are sized to correspond to tablets T61, T62, and T63, respectively.

図47の右図F47Bは、薬剤載置台414の47-47線における断面図である。右図F47Bに示すように、くぼみ414A、及び414Bは、平坦な底面を有する。右図F47Bに示すように、錠剤T61は、くぼみ414Bに嵌ることで、静置される。錠剤T62、及びT63についても同様である。 The right-hand image F47B of Figure 47 is a cross-sectional view of the medicine placement table 414 along line 47-47. As shown in the right-hand image F47B, the recesses 414A and 414B have flat bottom surfaces. As shown in the right-hand image F47B, the tablet T61 fits into the recess 414B and is placed in place. The same is true for tablets T62 and T63.

このように、薬剤載置台414によれば、載置面に直方体状のくぼみ構造を備えたことで、楕円形の錠剤が移動することを防止し、静置することができる。また、薬剤の撮影時の位置をくぼみ構造の位置に決定することができるので、薬剤の領域の検出が容易になる。In this way, the drug placement table 414 has a rectangular parallelepiped recess structure on the placement surface, which prevents oval tablets from moving and allows them to remain still. In addition, the position of the drug when photographing it can be determined to be the position of the recess structure, making it easy to detect the area of the drug.

なお、くぼみ構造の形状、数、及び配置は、図45~図47に示した態様に限定されず、適宜組み合わせてもよいし、拡大、又は縮小してもよい。The shape, number and arrangement of the recess structures are not limited to the aspects shown in Figures 45 to 47, and may be combined, enlarged or reduced as appropriate.

<各処理部及び制御部のハードウェア構成について>
図5で説明した画像取得部112、薬剤検出器114、領域修正部116、薬剤領域切出部118、薬剤識別器120、テキスト検索部122、表示制御部124、倍率変更部125、入力処理部126、図17で説明した刻印抽出部140、外形抽出部142、サイズ計測部144、損失演算部152、オプティマイザ154、図32で説明した薬種特定処理制御部160、グループ判別部162、薬種推定結果提示処理部170、カプセル薬剤特定処理部172、カプセル薬剤検索部173、無地薬剤特定処理部174、無地薬剤検索部175,分割錠剤特定処理部176、分割錠剤検索部177、及び分割錠剤画像登録部178などの各種の処理を実行する処理部(processing unit)のハードウェア的な構造は、次に示すような各種のプロセッサ(processor)である。
<Hardware configuration of each processing unit and control unit>
The hardware structure of the processing units that execute various processes, such as the image acquisition unit 112, the drug detector 114, the area correction unit 116, the drug area extraction unit 118, the drug identifier 120, the text search unit 122, the display control unit 124, the magnification change unit 125, and the input processing unit 126 described in FIG. 5, the mark extraction unit 140, the outline extraction unit 142, the size measurement unit 144, the loss calculation unit 152, the optimizer 154 described in FIG. 17, the drug type identification processing control unit 160, the group discrimination unit 162, the drug type estimation result presentation processing unit 170, the capsule drug identification processing unit 172, the capsule drug search unit 173, the plain drug identification processing unit 174, the plain drug search unit 175, the divided tablet identification processing unit 176, the divided tablet search unit 177, and the divided tablet image registration unit 178, are various processors as shown below.

各種のプロセッサには、プログラムを実行して各種の処理部として機能する汎用的なプロセッサであるCPU(Central Processing Unit)、画像処理に特化したプロセッサであるGPU(Graphics Processing Unit)、FPGA(Field Programmable Gate Array)などの製造後に回路構成を変更可能なプロセッサであるプログラマブルロジックデバイス(Programmable Logic Device:PLD)、ASIC(Application Specific Integrated Circuit)などの特定の処理を実行させるために専用に設計された回路構成を有するプロセッサである専用電気回路などが含まれる。 Various types of processors include CPUs (Central Processing Units), which are general-purpose processors that execute programs and function as various processing units, GPUs (Graphics Processing Units), which are processors specialized for image processing, Programmable Logic Devices (PLDs), such as FPGAs (Field Programmable Gate Arrays), which are processors whose circuit configuration can be changed after manufacture, and dedicated electrical circuits, such as ASICs (Application Specific Integrated Circuits), which are processors with a circuit configuration designed specifically to execute specific processes.

1つの処理部は、これら各種のプロセッサのうちの1つで構成されていてもよいし、同種又は異種の2つ以上のプロセッサで構成されてもよい。例えば、1つの処理部は、複数のFPGA、或いは、CPUとFPGAの組み合わせ、又は、CPUとGPUの組み合わせなどによって構成されてもよい。また、複数の処理部を1つのプロセッサで構成してもよい。複数の処理部を1つのプロセッサで構成する例としては、第一に、クライアントやサーバなどのコンピュータに代表されるように、1つ以上のCPUとソフトウェアの組み合わせで1つのプロセッサを構成し、このプロセッサが複数の処理部として機能する形態がある。第二に、システムオンチップ(System On Chip:SoC)などに代表されるように、複数の処理部を含むシステム全体の機能を1つのIC(Integrated Circuit)チップで実現するプロセッサを使用する形態がある。このように、各種の処理部は、ハードウェア的な構造として、上記各種のプロセッサを1つ以上用いて構成される。 A processing unit may be composed of one of these various processors, or may be composed of two or more processors of the same or different types. For example, a processing unit may be composed of multiple FPGAs, or a combination of a CPU and an FPGA, or a combination of a CPU and a GPU. In addition, multiple processing units may be composed of one processor. As an example of configuring multiple processing units with one processor, first, as represented by a computer such as a client or server, there is a form in which one processor is configured with a combination of one or more CPUs and software, and this processor functions as multiple processing units. Secondly, as represented by a system on chip (SoC), there is a form in which a processor that realizes the functions of the entire system including multiple processing units is used with one IC (Integrated Circuit) chip. In this way, various processing units are configured using one or more of the above various processors as a hardware structure.

さらに、これらの各種のプロセッサのハードウェア的な構造は、より具体的には、半導体素子などの回路素子を組み合わせた電気回路(circuitry)である。 More specifically, the hardware structure of these various processors is an electrical circuit that combines circuit elements such as semiconductor elements.

<薬種識別装置100の機能を実現させるプログラムについて>
薬種識別装置100の処理機能はスマートフォン10に限らず、タブレット型コンピュータ、パーソナルコンピュータ、あるいはワークステーションなど、様々な形態の情報処理装置を用いて実現することができる。上記の実施形態で説明した薬種識別装置100の処理機能の一部又は全部をコンピュータに実現させるプログラムを光ディスク、磁気ディスク、若しくは、半導体メモリその他の有体物たる非一時的な情報記憶媒体であるコンピュータ可読媒体に記録し、この情報記憶媒体を通じてプログラムを提供することが可能である。またこのような有体物たる非一時的な情報記憶媒体にプログラムを記憶させて提供する態様に代えて、インターネットなどの電気通信回線を利用してプログラム信号をダウンロードサービスとして提供することも可能である。
<Program for realizing the functions of the drug type identification device 100>
The processing function of the drug type identification device 100 is not limited to the smartphone 10, and can be realized by using various types of information processing devices, such as a tablet computer, a personal computer, or a workstation. A program for causing a computer to realize part or all of the processing functions of the drug type identification device 100 described in the above embodiment can be recorded on a computer-readable medium, which is a non-transitory information storage medium such as an optical disk, a magnetic disk, a semiconductor memory, or other tangible information storage medium, and the program can be provided through this information storage medium. Instead of providing the program by storing it on such a tangible non-transitory information storage medium, it is also possible to provide a program signal as a download service using an electric communication line such as the Internet.

また、上記の実施形態で説明した薬種識別装置100の処理機能の一部をアプリケーションサーバとして提供し、電気通信回線を通じて処理機能を提供するサービスを行うことも可能である。It is also possible to provide part of the processing functions of the drug type identification device 100 described in the above embodiment as an application server, and to provide a service that provides processing functions via telecommunications lines.

<実施形態の効果>
実施形態に係る薬種識別装置100によれば、薬種特定可能薬剤と薬種特定困難薬剤とが混在した状態で撮影された画像であっても画像内の個々の薬剤の種類、又は薬剤が属するグループを自動的に識別して、薬種特定困難薬剤については各グループに特有の処理に移行して、種類の特定を支援するGUIを提供することができる。このため、薬学的観点から意味のある単位で複数の薬剤をまとめて撮影して、個々の薬剤を特定することが可能になる。
Effects of the embodiment
According to the drug type identification device 100 of the embodiment, even if an image is taken in a state where drugs with identifiable drug types and drugs with difficult drug types are mixed, the type of each drug in the image or the group to which the drug belongs can be automatically identified, and for drugs with difficult drug types, a GUI can be provided that transitions to processing specific to each group and assists in identifying the type. Therefore, it becomes possible to photograph multiple drugs collectively in units that are meaningful from a pharmaceutical perspective and identify each drug.

[変形例1]
薬剤識別器120は、テンプレートマッチングの手法による画像認識器を含んで構成されてもよい。
[Modification 1]
The medication identifier 120 may be configured to include an image recognizer using a template matching technique.

[変形例2]
上記の実施形態では薬剤の鑑別を行う場合の例を説明したが、薬剤監査を行う場合についても本開示の技術を適用できる。また、上記の実施形態では、識別対象の物体が薬剤である場合の例を説明したが、識別対象の物体は薬剤に限らない。本開示の技術は、物体の種類及び用途などによらず、様々な物体について、画像から物体を識別する技術として適用することができる。
[Modification 2]
In the above embodiment, an example of identifying medicines has been described, but the technology of the present disclosure can also be applied to a case of inspecting medicines. In addition, in the above embodiment, an example of identifying an object to be identified is medicine, but the object to be identified is not limited to medicine. The technology of the present disclosure can be applied as a technology for identifying various objects from images, regardless of the type and use of the object.

<用語の説明>
本開示において「物体」とは、階層構造による分類を観念できる物をいう。分類の階層構造の特定の深さのことを粒度といい、当該粒度において物体はいずれかの「種類」に属するものとする。「識別」とは、ある特定の粒度において、対象物がどの種類に属するかを決定することをいう。
<Terminology>
In this disclosure, an "object" refers to an object that can be classified according to a hierarchical structure. A specific depth in the hierarchical structure of the classification is called granularity, and an object belongs to one of the "types" at that granularity. "Identification" refers to determining which type an object belongs to at a certain granularity.

階層構造は、識別の目的に応じて定義してよい。 The hierarchical structure may be defined according to the purpose of identification.

上記の「ある特定の粒度」は、識別の目的に応じて決まるものとする。 The above "certain granularity" shall be determined according to the purpose of identification.

共通の特徴を持つ物体の集合をグループという。グループは、種類と関係があってもよいし、なくてもよい。グループは、上記階層構造上における当該種類の上位の階層を指してもよいし、便宜上新たに定義した(上記階層構造とは無関係の)集合であってもよい。グループは、識別の目的に応じて決めて定義してよい。A group is a collection of objects that share a common characteristic. A group may or may not be related to a type. A group may refer to a higher level of the type in the above hierarchical structure, or it may be a newly defined collection (unrelated to the above hierarchical structure) for convenience. Groups may be determined and defined according to the purpose of identification.

〔具体例〕
薬剤は、薬効分類による階層構造や、外見上の特徴による階層構造での分類を観念できる物である。薬剤識別は、対象薬剤がどのYJコードの医薬品であるかを決定する行為として定義し得る(これは薬剤識別の定義の一例であって、例えば識別符号はYJコード以外の種類を用いて定義してもよい)。上記の実施形態において説明した「カプセル薬剤」及び「無地錠剤」の各グループは、便宜上新たに定義した種類の集合である。また、「半錠剤」のグループは、便宜上新たに定義した薬剤の集合である。YJコードという種類とは無関係の集合であるが、薬剤識別の目的はあくまでも半錠剤のYJコードを特定することである。
[Specific examples]
Drugs can be classified into a hierarchical structure based on efficacy classification or a hierarchical structure based on appearance characteristics. Drug identification can be defined as the act of determining which YJ code the target drug is (this is an example of the definition of drug identification, and for example, the identification code may be defined using a type other than the YJ code). Each group of "capsule drug" and "plain tablet" described in the above embodiment is a collection of types newly defined for convenience. In addition, the "half tablet" group is a collection of drugs newly defined for convenience. Although it is a collection unrelated to the type of YJ code, the purpose of drug identification is to identify the YJ code of the half tablet.

《その他》
本発明の技術的範囲は、上記した実施形態及び変形例に記載の範囲には限定されない。実施形態及び変形例における構成等は、本発明の趣旨を逸脱しない範囲で変更可能であり、実施形態及び変形例間で適宜組み合わせることができる。
"others"
The technical scope of the present invention is not limited to the scope of the above-mentioned embodiment and modified examples. The configurations and the like in the embodiment and modified examples can be changed without departing from the spirit of the present invention, and the embodiment and modified examples can be appropriately combined.

10 スマートフォン
12 筐体
14 タッチパネルディスプレイ
14A 表示部
14B 入力部
16 スピーカ
18 マイクロフォン
20 インカメラ
22 アウトカメラ
24 ライト
26 スイッチ
28 CPU
30 無線通信部
32 通話部
34 メモリ
36 内部記憶部
38 外部記憶部
40 外部入出力部
42 GPS受信部
44 電源部
50 撮影レンズ
50F フォーカスレンズ
50Z ズームレンズ
54 撮像素子
58 A/D変換器
60 レンズ駆動部
70 撮影補助装置
72 筐体
72A 底面板
72B 側面板
72C 側面板
72D 側面板
72E 側面板
74 薬剤載置台
74A、74B、74C、74D 基準マーカ
75 主光源
78 補助光源
80 撮影補助装置
81 照明装置
82 筐体
82A 底面板
82B 側面板
84 主光源
86 補助光源
100 薬種識別装置
102 プロセッサ
104 記憶装置
112 画像取得部
114 薬剤検出器
116 領域修正部
118 薬剤領域切出部
120 薬剤識別器
122 テキスト検索部
124 表示制御部
125 倍率変更部
126 入力処理部
130 データベース
131 マスタ画像データベース
132 識別結果記憶部
140 刻印抽出部
142 外形抽出部
144 サイズ計測部
150 機械学習システム
151 学習モデル
152 損失演算部
154 オプティマイザ
160 薬種特定処理制御部
162 グループ判別部
170 薬種推定結果提示処理部
172 カプセル薬剤特定処理部
173 カプセル薬剤検索部
174 無地薬剤特定処理部
175 無地薬剤検索部
176 分割錠剤特定処理部
177 分割錠剤検索部
178 分割錠剤画像登録部
410 薬剤載置台
410A、410B、410C、410D くぼみ
410E、410F、410G、410H、410I くぼみ
412 薬剤載置台
412A、412B、412C、412D くぼみ
412E、412F くぼみ
414 薬剤載置台
414A、414B、414C、414D くぼみ
414E、414F くぼみ
Abs 領域
BDA ボタン表示部
BT2 領域追加ボタン
BT3 領域削除ボタン
BT4 刻印テキスト検索ボタン
BT5 薬種確定ボタン
BT6 薬種確定保留ボタン
BT7 再撮影ボタン
BT8 完了ボタン
BT9 右矢印ボタン
BT10 左矢印ボタン
BT11 矢印ボタン
BT12 検索ボタン
BT13 カプセル一覧ボタン
BT14 無地薬剤一覧ボタン
BT15 分割錠剤呼出ボタン
BX、BX1、BX2、BX3、BX4 枠
CB チェックボックス
CDA 候補表示部
CP1、CP2、CP3 カプセル薬剤
DR1、DR2、DR3、DRj 薬剤
EDA 全体画像表示部
Egm、Egm1、Egm2、Egm3、Egm4、Egm5 刻印抽出画像
F40A 左図
F40B 右図
F41A 左図
F41B 右図
F42A 左図
F42B 右図
F43A 左図
F43B 右図
F44A 左図
F44B 右図
F45A 左図
F45B 右図
F46A 左図
F46B 右図
F47A 左図
F47B 右図
GTj 正解データ
IB1 入力ボックス
IB2 入力ボックス
IM1j 刻印抽出画像
IM2j 外形画像
IMj 薬剤画像
LS1 分割錠剤画像表示部
LS2 候補薬剤画像表示部
MC、MC1、MC2、MC3、MC4 円形マーカ
MGj 倍率情報
MS、MS1、MS2 四角形マーカ
Org、Org1、Org2、Org3、Org4、Org5 元画像
Otw、Otw1、Otw2、Otw3、Otw4、Otw5 外形画像
PDM プルダウンメニュー
PRj 推論結果
SBT1、SBT2、SBT3 検索ボタン
SBX1 検索ボックス
SBX2 テキスト検索ボックス
SBX3 検索ボックス
SC1、SC2、SC3、SC4、SC5、SC6、SC7、SC8、SC9 画面
SLB1、SLB2、SLB3、SLB4、SLB5 選択ボックス
SQ1、SQ2、SQ3 正方形
SRB スクロールバー
SRD カプセル画像表示部
SRD2 無地薬剤画像表示部
ST1 GPS衛星
ST2 GPS衛星
SW1 領域編集スイッチ
SZB サイズ検索ボックス
SZj サイズ情報
T1、T2、T3、T4、T5 薬剤
T51、T52、T53 錠剤
T61、T62、T63 錠剤
TM1 第1学習済みモデル
TM2 第2学習済みモデル
S1~S5 薬種識別装置を構成するための学習方法のステップ
S11~S16 薬種識別方法のステップ
S21~S29 薬種識別方法のステップ
REFERENCE SIGNS LIST 10 Smartphone 12 Housing 14 Touch panel display 14A Display unit 14B Input unit 16 Speaker 18 Microphone 20 In-camera 22 Out-camera 24 Light 26 Switch 28 CPU
30 Wireless communication unit 32 Communication unit 34 Memory 36 Internal storage unit 38 External storage unit 40 External input/output unit 42 GPS receiver 44 Power supply unit 50 Shooting lens 50F Focus lens 50Z Zoom lens 54 Image sensor 58 A/D converter 60 Lens driver 70 Shooting auxiliary device 72 Housing 72A Bottom plate 72B Side plate 72C Side plate 72D Side plate 72E Side plate 74 Medicine placement table 74A, 74B, 74C, 74D Reference marker 75 Main light source 78 Auxiliary light source 80 Shooting auxiliary device 81 Illumination device 82 Housing 82A Bottom plate 82B Side plate 84 Main light source 86 Auxiliary light source 100 Drug type identification device 102 Processor 104 Storage device 112 Image acquisition unit 114 Drug detector 116 Area correction unit 118 Drug area cutout unit 120 Drug identifier 122 Text search unit 124 Display control unit 125 Magnification change unit 126 Input processing unit 130 Database 131 Master image database 132 Identification result storage unit 140 Engraving extraction unit 142 Outline extraction unit 144 Size measurement unit 150 Machine learning system 151 Learning model 152 Loss calculation unit 154 Optimizer 160 Drug type identification processing control unit 162 Group discrimination unit 170 Drug type estimation result presentation processing unit 172 Capsule drug identification processing unit 173 Capsule drug search unit 174 Plain drug identification processing unit 175 Plain drug search unit 176 Divided tablet identification processing unit 177 Divided tablet search unit 178 Divided tablet image registration unit 410 Drug placement table 410A, 410B, 410C, 410D Depression 410E, 410F, 410G, 410H, 410I Depression 412 Medicine placement stand 412A, 412B, 412C, 412D Indentation 412E, 412F Indentation 414 Medicine placement stand 414A, 414B, 414C, 414D Indentation 414E, 414F Indentation Abs Area BDA Button display area BT2 Add area button BT3 Delete area button BT4 Search engraved text button BT5 Confirm drug type button BT6 Hold confirmation of drug type button BT7 Retake photo button BT8 Done button BT9 Right arrow button BT10 Left arrow button BT11 Arrow button BT12 Search button BT13 Capsule list button BT14 Plain medicine list button BT15 Divided tablet call button BX, BX1, BX2, BX3, BX4 Frame CB Check box CDA Candidate display areas CP1, CP2, CP3 Capsule drugs DR1, DR2, DR3, DRj Drug EDA Whole image display area Egm, Egm1, Egm2, Egm3, Egm4, Egm5 Engraving extraction image F40A Left image F40B Right image F41A Left image F41B Right image F42A Left image F42B Right image F43A Left image F43B Right image F44A Left image F44B Right image F45A Left image F45B Right image F46A Left image F46B Right image F47A Left image F47B Right image GTj Correct data IB1 Input box IB2 Input box IM1j Engraving extraction image IM2j Outline image IMj Drug image LS1 Divided tablet image display area LS2 Candidate drug image display area MC, MC1, MC2, MC3, MC4 Circular marker MGj Magnification information MS, MS1, MS2 Square marker Org, Org1, Org2, Org3, Org4, Org5 Original image Otw, Otw1, Otw2, Otw3, Otw4, Otw5 Outline image PDM Pull-down menu PRj Inference result SBT1, SBT2, SBT3 Search button SBX1 Search box SBX2 Text search box SBX3 Search boxes SC1, SC2, SC3, SC4, SC5, SC6, SC7, SC8, SC9 Screen SLB1, SLB2, SLB3, SLB4, SLB5 Selection box SQ1, SQ2, SQ3 Square SRB Scroll bar SRD Capsule image display area SRD2 Plain drug image display section ST1 GPS satellite ST2 GPS satellite SW1 Area edit switch SZB Size search box SZj Size information T1, T2, T3, T4, T5 Drug T51, T52, T53 Tablet T61, T62, T63 Tablet TM1 First trained model TM2 Second trained models S1 to S5 Steps S11 to S16 of the learning method for constructing a drug type identification device Steps S21 to S29 of the drug type identification method Steps of the drug type identification method

Claims (24)

複数の物体が撮影された画像から前記物体を物体単位で検出する検出器と、
前記検出器によって検出された前記物体のうち、前記画像から前記物体の種類まで特定できる種類特定可能物体については前記画像から前記物体の種類を推定し、前記画像から前記物体の種類までは特定困難であるが前記物体が属するグループを特定できる種類特定困難物体については前記画像から前記グループを推定する識別器と、
前記識別器により前記グループとして推定された前記物体について前記種類の特定につながるグループ特有の処理を行う処理部と、
を備える物体識別装置。
A detector that detects a plurality of objects on an object-by-object basis from an image in which the objects are captured;
a classifier that estimates a type of an identifiable object from the image among the objects detected by the detector, and estimates a group from the image for a type-unidentifiable object whose type is difficult to identify from the image but whose group to which the object belongs is identifiable;
a processing unit that performs group-specific processing on the objects estimated as the group by the classifier, the processing leading to identification of the type;
An object identification device comprising:
前記画像は、前記種類特定可能物体と前記種類特定困難物体とが混在している状態で撮影された画像である、
請求項1に記載の物体識別装置。
the image is an image captured in a state in which the type-identifiable objects and the type-difficult-to-identify objects are mixed together,
The object identification device according to claim 1 .
前記種類特定困難物体は、複数の前記グループに分類され、
それぞれの前記グループに対して前記グループ特有の処理が定められている、
請求項1又は2に記載の物体識別装置。
The object is classified into a plurality of groups,
A group-specific process is defined for each of the groups.
The object identification device according to claim 1 or 2.
前記検出器は、前記種類特定可能物体と前記種類特定困難物体とを区別せずに前記物体単位でラベル付けした第1の訓練データを用いて機械学習により訓練された第1の学習済みモデルを含む、
請求項1又は2に記載の物体識別装置。
The detector includes a first learned model trained by machine learning using first training data labeled on an object-by-object basis without distinguishing between the identifiable object and the difficult-to-identify object.
The object identification device according to claim 1 or 2 .
前記識別器は、前記種類特定可能物体については前記物体の種類単位でラベル付けし、前記種類特定困難物体については前記物体が属するグループ単位でラベル付けした第2の訓練データを用いて機械学習により訓練された第2の学習済みモデルを含む、
請求項1又は2に記載の物体識別装置。
the classifier includes a second learned model trained by machine learning using second training data in which the identifiable objects are labeled by object type and the difficult-to-identify objects are labeled by group to which the objects belong;
The object identification device according to claim 1 or 2 .
前記グループを識別するラベルは階層構造で定義されている、
請求項1又は2に記載の物体識別装置。
The labels for identifying the groups are defined in a hierarchical structure.
The object identification device according to claim 1 or 2 .
前記識別器への入力として、前記画像から前記検出器によって検出された前記物体の領域を前記物体単位で切り出した物体画像、前記物体画像から抽出された文字及び記号のうち少なくとも一方を含む文字記号抽出画像、前記物体の外形画像、及び前記物体のサイズ情報のうち少なくとも1つを用いる、
請求項1又は2に記載の物体識別装置。
As an input to the classifier, at least one of an object image obtained by cutting out a region of the object detected by the detector from the image on an object-by-object basis, a character/symbol extraction image including at least one of a character and a symbol extracted from the object image, an external image of the object, and size information of the object is used.
The object identification device according to claim 1 or 2 .
前記識別器への入力として、さらに、前記物体画像の拡大又は縮小率を示す倍率情報を用いる、
請求項7に記載の物体識別装置。
Magnification information indicating a magnification or reduction ratio of the object image is further used as an input to the classifier.
The object identification device according to claim 7.
前記グループ特有の前記処理は、前記推定された前記グループ内で前記物体の種類を検索するための検索条件の入力を受け付ける画面を表示させる処理を含む、
請求項1又は2に記載の物体識別装置。
the group-specific processing includes processing for displaying a screen for accepting input of a search condition for searching for the type of the object within the estimated group;
The object identification device according to claim 1 or 2 .
前記物体は薬剤であり、
前記種類特定困難物体は、カプセル薬剤、無地薬剤、及び分割錠剤のうち少なくとも1つを含み、
前記種類特定可能物体は、刻印又は印字を有する錠剤を含む、
請求項1又は2に記載の物体識別装置。
the substance is a drug;
The difficult-to-identify object includes at least one of a capsule medicine, a plain medicine, and a divided tablet;
The type identifiable object includes a tablet having an imprint or print;
The object identification device according to claim 1 or 2 .
前記識別器への入力として、前記画像から前記検出器によって検出された前記薬剤の領域を薬剤単位で切り出した薬剤画像、前記薬剤画像から抽出された文字及び記号のうち少なくとも一方を含む文字記号抽出画像、前記薬剤の外形画像、及び前記薬剤のサイズ情報のうち少なくとも1つを用いる、
請求項10に記載の物体識別装置。
As an input to the classifier, at least one of a drug image obtained by cutting out the region of the drug detected by the detector from the image on a drug-by-drug basis, a character/symbol extraction image including at least one of characters and symbols extracted from the drug image, an outline image of the drug, and size information of the drug is used.
The object identification device according to claim 10.
1つ以上のプロセッサと、前記1つ以上のプロセッサが実行するプログラムが記憶される1つ以上のメモリと、を備える物体識別装置であって、
前記1つ以上の前記プロセッサは、
複数の物体が撮影された画像から前記物体を物体単位で検出する検出処理と、
前記検出処理によって検出された前記物体のうち、前記画像から前記物体の種類まで特定できる種類特定可能物体については前記画像から前記物体の種類を推定し、前記画像から前記物体の種類までは特定困難であるが前記物体が属するグループを推定できる種類特定困難物体については前記画像から前記グループを推定する識別処理と、
前記識別処理により前記グループとして推定された前記物体について前記種類の特定につながるグループ特有の処理に移行する処理と、
を実行する物体識別装置。
An object identification device comprising one or more processors and one or more memories in which a program executed by the one or more processors is stored,
The one or more processors:
A detection process for detecting a plurality of objects on an object-by-object basis from an image in which the objects are captured;
a classification process for estimating the type of an identifiable object from the image among the objects detected by the detection process, and for a difficult-to-identify object whose type is difficult to identify from the image but whose group to which the object belongs can be estimated, estimating the group from the image;
A process of transitioning to a group-specific process leading to identification of the type of the object estimated as the group by the identification process;
An object identification device that performs the above.
前記1つ以上の前記プロセッサは、
前記種類特定可能物体と前記種類特定困難物体とを区別せずに前記物体単位でラベル付けした第1の訓練データを用いて機械学習により訓練された第1の学習済みモデルを含む検出器を用いて前記検出処理を実行する、
請求項12に記載の物体識別装置。
The one or more processors:
performing the detection process using a detector including a first trained model trained by machine learning using first training data in which the object is labeled on an object-by-object basis without distinguishing between the identifiable object and the difficult-to-identify object;
The object identification device according to claim 12.
前記1つ以上の前記プロセッサは、
前記種類特定可能物体については前記物体の種類単位でラベル付けし、前記種類特定困難物体については前記物体が属するグループ単位でラベル付けした第2の訓練データを用いて機械学習により訓練された第2の学習済みモデルを含む識別器を用いて前記識別処理を実行する、
請求項12又は13に記載の物体識別装置。
The one or more processors:
The classification process is performed using a classifier including a second trained model trained by machine learning using second training data in which the identifiable object type is labeled by the object type and the difficult-to-identify object type is labeled by the group to which the object belongs.
14. An object identification device according to claim 12 or 13.
前記1つ以上の前記プロセッサは、
前記画像から前記検出処理によって検出された前記物体の領域を切り出し、前記物体単位の物体画像を生成する処理を実行し、
前記物体画像に基づいて前記識別処理を行う、
請求項12又は13に記載の物体識別装置。
The one or more processors:
A process of extracting an area of the object detected by the detection process from the image and generating an object image for each object is performed;
The identification process is performed based on the object image.
14. An object identification device according to claim 12 or 13 .
前記物体は薬剤であり、
前記種類特定困難物体は、カプセル薬剤、無地薬剤、及び分割錠剤のうち少なくとも1つを含み、
前記種類特定可能物体は、刻印又は印字を有する錠剤を含み、
前記グループ特有の処理は、前記推定された前記グループ内で前記薬剤の種類を検索するための検索条件の入力を受け付ける画面を表示させる処理を含む、
請求項12又は13に記載の物体識別装置。
the substance is a drug;
The difficult-to-identify object includes at least one of a capsule medicine, a plain medicine, and a divided tablet;
The type identifiable object includes a tablet having an imprint or marking;
The group-specific processing includes a process of displaying a screen for accepting input of search conditions for searching for the type of the drug within the estimated group.
14. An object identification device according to claim 12 or 13 .
前記薬剤に付された刻印又は印字が示す文字及び記号のうち少なくとも一方を含む文字記号情報と前記薬剤の種類とが紐付けされた第1のデータベースと、
前記薬剤のマスタ画像が格納されている第2のデータベースと、
を備え、
前記1つ以上の前記プロセッサは、
前記受け付けた前記検索条件に基づき前記第1のデータベース及び前記第2のデータベースのうち少なくとも一方を検索し、前記検索条件に該当する前記薬剤の候補を出力する、
請求項16に記載の物体識別装置。
A first database in which character and symbol information including at least one of characters and symbols indicated by a mark or print on the medicine is linked to the type of the medicine;
a second database in which master images of the medicine are stored;
Equipped with
The one or more processors:
searching at least one of the first database and the second database based on the received search conditions, and outputting the drug candidates that meet the search conditions;
The object identification device according to claim 16.
前記1つ以上の前記プロセッサは、
前記画像を表示させる撮影画像表示部と、
前記識別処理の推定結果に基づく候補物体の情報を表示させる候補表示部と、を含む画面を表示させる処理を行う、
請求項12又は13に記載の物体識別装置。
The one or more processors:
a captured image display unit for displaying the image;
a candidate display unit that displays information on a candidate object based on an estimation result of the classification process; and
14. An object identification device according to claim 12 or 13 .
前記1つ以上の前記プロセッサは、
前記候補表示部に表示させる前記候補物体が属する前記グループの情報を表示させる処理を行う、
請求項18に記載の物体識別装置。
The one or more processors:
performing a process of displaying information on the group to which the candidate object to be displayed on the candidate display unit belongs;
20. The object identification device according to claim 18.
前記1つ以上の前記プロセッサは、
前記候補表示部に表示させる前記候補物体が属する前記グループを指定する指示を受け付け、
前記受け付けた前記指示に従い、前記候補表示部の表示を制御する、
請求項19に記載の物体識別装置。
The one or more processors:
accepting an instruction to designate the group to which the candidate object to be displayed in the candidate display unit belongs;
Controlling the display of the candidate display unit in accordance with the received instruction.
20. The object identification device according to claim 19.
カメラと、
前記カメラによって撮影された前記画像及び前記画像から推定された前記物体に関する情報を表示するディスプレイと、
を備える請求項1又は12に記載の物体識別装置。
A camera and
a display that displays the image captured by the camera and information about the object estimated from the image; and
The object identification device according to claim 1 or 12 , comprising:
1つ以上のプロセッサが実行する物体識別方法であって、
前記1つ以上のプロセッサが、
複数の物体が撮影された画像から前記物体を物体単位で検出することと、
前記検出された前記物体のうち、前記画像から前記物体の種類まで推定できる種類特定可能物体については前記画像から前記物体の種類を推定し、前記画像から前記物体の種類までは特定困難であるが前記物体が属するグループを特定できる種類特定困難物体については前記画像から前記グループを推定することと、
前記グループとして推定された前記物体について前記種類の特定につながるグループ特有の処理を実行することと、
を含む、物体識別方法。
1. A method for object identification executed by one or more processors, comprising:
the one or more processors:
Detecting a plurality of objects on an object-by-object basis from an image in which the objects are captured;
For a type-identifiable object among the detected objects, the type of the object can be estimated from the image, estimating the type of the object from the image, and for a type-difficult object whose type is difficult to identify from the image but whose group to which the object belongs can be identified, estimating the group from the image;
performing group-specific processing on the objects estimated as the group, leading to an identification of the type;
The object identification method includes:
コンピュータに、
複数の物体が撮影された画像から前記物体を物体単位で検出する機能と、
前記検出された前記物体のうち、前記画像から前記物体の種類まで特定できる種類特定可能物体については前記画像から前記物体の種類を推定し、前記画像から前記物体の種類までは特定困難であるが前記物体が属するグループを特定できる種類特定困難物体については前記画像から前記グループを推定する機能と、
前記グループとして推定された前記物体について前記種類の特定につながるグループ特有の処理を実行する機能と、
を実現させるプログラム。
On the computer,
A function of detecting a plurality of objects on an object-by-object basis from an image in which the objects are captured;
a function of estimating the type of an identifiable object from the image among the detected objects, and estimating the group from the image for a difficult-to-identify object whose type is difficult to identify from the image but whose group to which the object belongs is identifiable;
A function of performing group-specific processing on the objects estimated as the group, which leads to identification of the type;
A program to achieve this.
非一時的かつコンピュータ読取可能な記録媒体であって、請求項23に記載のプログラムが記録された記録媒体。 A non-transitory computer-readable recording medium on which the program according to claim 23 is recorded.
JP2024511824A 2022-03-28 2023-03-17 OBJECT IDENTIFICATION DEVICE, OBJECT IDENTIFICATION METHOD, PROGRAM, AND RECORDING MEDIUM Active JP7690684B2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2022051951 2022-03-28
JP2022051951 2022-03-28
PCT/JP2023/010610 WO2023189734A1 (en) 2022-03-28 2023-03-17 Object identification device, object identification method, and program

Publications (3)

Publication Number Publication Date
JPWO2023189734A1 JPWO2023189734A1 (en) 2023-10-05
JPWO2023189734A5 JPWO2023189734A5 (en) 2024-12-12
JP7690684B2 true JP7690684B2 (en) 2025-06-10

Family

ID=88200998

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2024511824A Active JP7690684B2 (en) 2022-03-28 2023-03-17 OBJECT IDENTIFICATION DEVICE, OBJECT IDENTIFICATION METHOD, PROGRAM, AND RECORDING MEDIUM

Country Status (2)

Country Link
JP (1) JP7690684B2 (en)
WO (1) WO2023189734A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150154750A1 (en) 2013-11-29 2015-06-04 Atabak Reza Royaee Method and Device for Identification and/or Sorting of Medicines
JP2021508811A (en) 2017-12-30 2021-03-11 美的集団股▲フン▼有限公司Midea Group Co., Ltd. Food cooking methods and systems based on ingredient identification

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021026450A (en) * 2019-08-02 2021-02-22 大日本印刷株式会社 Computer program, information processing device, information processing method and generation method of learned model

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150154750A1 (en) 2013-11-29 2015-06-04 Atabak Reza Royaee Method and Device for Identification and/or Sorting of Medicines
JP2021508811A (en) 2017-12-30 2021-03-11 美的集団股▲フン▼有限公司Midea Group Co., Ltd. Food cooking methods and systems based on ingredient identification

Also Published As

Publication number Publication date
JPWO2023189734A1 (en) 2023-10-05
WO2023189734A1 (en) 2023-10-05

Similar Documents

Publication Publication Date Title
JP5872142B2 (en) UI providing method and display device using the same
US20230368552A1 (en) Drug identification device, drug identification method and program, drug identification system, drug loading table, illumination device, imaging assistance device, trained model, and learning device
CN113806036A (en) Output of virtual content
CN109934931B (en) Method and device for collecting image and establishing target object recognition model
CN113076814B (en) Text area determination method, device, equipment and readable storage medium
TW201531918A (en) Organizing digital notes on a user interface
TW201546699A (en) Note capture, recognition, and management with hints on a user interface
JP7752597B2 (en) Drug identification device, drug identification method, and program
JP7741044B2 (en) Drug identification device, drug identification method, and program
CN113744172B (en) Document image processing method and device and training sample generation method and device
US9389753B2 (en) Apparatus and method of providing user interface
US20230224574A1 (en) Photographing method and apparatus
JP7690684B2 (en) OBJECT IDENTIFICATION DEVICE, OBJECT IDENTIFICATION METHOD, PROGRAM, AND RECORDING MEDIUM
US10915778B2 (en) User interface framework for multi-selection and operation of non-consecutive segmented information
US11734859B2 (en) Image processing apparatus, imaging apparatus, image processing method, and image processing program
CN109040588A (en) Face image photographing method and device, storage medium and terminal
CN110163192B (en) Character recognition method, device and readable medium
CN105975566A (en) Image-based information search method and device
US20150339538A1 (en) Electronic controller, control method, and control program
JP2024041377A (en) Mobile terminal device, display method and program for mobile terminal device
CN116830149A (en) Medicine identification device, medicine identification method and program, medicine identification system, medicine placement table, lighting device, shooting auxiliary device, learned model and learning device
JP2023119446A (en) Medical product information registration system, medical product information registration method, information processing device, medical information system, and program
CN112995539B (en) Mobile terminal and image processing method
JP5314521B2 (en) Image processing system and image processing method
WO2025041497A1 (en) Drug identification device, drug identification method, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20241008

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20241008

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20250529

R150 Certificate of patent or registration of utility model

Ref document number: 7690684

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150