JP7375161B2 - Learning data creation device, method, program, and recording medium - Google Patents
Learning data creation device, method, program, and recording medium Download PDFInfo
- Publication number
- JP7375161B2 JP7375161B2 JP2022507151A JP2022507151A JP7375161B2 JP 7375161 B2 JP7375161 B2 JP 7375161B2 JP 2022507151 A JP2022507151 A JP 2022507151A JP 2022507151 A JP2022507151 A JP 2022507151A JP 7375161 B2 JP7375161 B2 JP 7375161B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- learning
- drug
- data
- drugs
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Description
本発明は学習データ作成装置、方法、プログラム、学習データ及び機械学習装置に係り、特に多数の学習データを効率よく作成する技術に関する。 The present invention relates to a learning data creation device, method, program, learning data, and machine learning device, and particularly relates to a technique for efficiently creating a large amount of learning data.
従来、教示ファイルに格納されている多数の教示データに基づいて学習し、パターン認識して欠陥判定をする外観検査装置が提案されている(特許文献1)。 2. Description of the Related Art Conventionally, an appearance inspection apparatus has been proposed that learns based on a large amount of teaching data stored in a teaching file, performs pattern recognition, and determines defects (Patent Document 1).
この外観検査装置は、教示ファイル中の多数の教示データのうち、データ数の少ない特定の教示データについては、その特定の教示データを変形して新たな教示データを生成する教示データ生成装置を備え、教示データ生成装置により生成された教示データを教示ファイルに補充して学習することで、データ数の少ない欠陥の検査を可能にしている。 This visual inspection device includes a teaching data generation device that transforms specific teaching data with a small number of data out of a large number of teaching data in the teaching file to generate new teaching data. By supplementing the teaching file with teaching data generated by the teaching data generating device for learning, it is possible to inspect defects with a small amount of data.
また、教示データ生成装置は、生成すべき教示データが画像データであるときは、画像の拡大、縮小、回転を含むアフィン変換と、明るさ、コントラスト、エッジ強度を含む属性変換を行うことにより、新たな教示データを生成している。 Furthermore, when the teaching data to be generated is image data, the teaching data generation device performs affine transformation including image enlargement, reduction, and rotation, and attribute conversion including brightness, contrast, and edge strength. New teaching data is being generated.
ところで、対象物としての薬剤が撮影された撮影画像からその撮影画像内の薬剤の領域を、学習済みの学習モデルにより精度よく認識するためには、薬剤を撮影した撮影画像と、その撮影画像内の薬剤の領域を示す領域情報(正解データ)とのペアを多数作成し、多数のペアからなる学習データセットにより学習モデルを機械学習させる必要がある。 By the way, in order to accurately recognize the drug area in a photographed image of a drug as a target object using a trained learning model, it is necessary to It is necessary to create many pairs with region information (correct data) indicating the region of the drug, and perform machine learning on the learning model using a learning data set consisting of many pairs.
従来のこの種の正解データは、撮影画像をディスプレイに表示し、ディスプレイに表示された撮影画像を見ながら薬剤の領域をユーザが画素単位で塗り潰して作成しており、正解データの作成に手間と時間がかかるという問題がある。 Conventionally, this type of correct answer data is created by displaying a photographed image on a display and having the user fill in the drug area pixel by pixel while looking at the photographed image displayed on the display, which takes time and effort to create correct answer data. The problem is that it takes time.
一方、特許文献1に記載の外観検査装置は、カメラを用いて印刷物や無地面(紙、フィルム、金属など)の対象物を撮像し、撮像した画像から印刷欠陥を認識し、欠陥の種類(「穴」、「しみ」、「凸」、「すじ」など)を分別するものである。
On the other hand, the visual inspection device described in
したがって、教示データ生成装置により、データ数の少ない一のデータ(画像データ)を変形して新たに複数の教示データを生成する場合、同じ画像データを変形して生成した複数の教示データに対応する正解データは、同一の欠陥の種類を示すデータになる。即ち、特許文献1には、教示データ(教示画像)に対する正解データの作成に手間と時間がかかるという課題の記載がなく、それを解決する技術も開示されていない。
Therefore, when the teaching data generation device transforms one piece of data (image data) with a small number of data to generate a plurality of new teaching data, the data corresponding to the plurality of teaching data generated by transforming the same image data. The correct data is data indicating the same defect type. That is,
本発明はこのような事情に鑑みてなされたもので、薬剤を撮影した撮影画像から薬剤の領域に対応する領域情報を認識する学習モデルを機械学習させるための学習データを効率よく作成することができる学習データ作成装置、方法、プログラム、学習データ及び機械学習装置を提供することを目的とする。 The present invention has been made in view of the above circumstances, and it is possible to efficiently create learning data for machine learning a learning model that recognizes area information corresponding to the area of a drug from photographed images of drugs. The purpose is to provide a learning data creation device, method, program, learning data, and machine learning device that can perform the following tasks.
上記目的を達成するために第1態様に係る発明は、プロセッサと、メモリとを備え、プロセッサが機械学習用の学習データを作成する学習データ作成装置であって、プロセッサは、薬剤が撮影された撮影画像を取得する取得処理と、取得した撮影画像から薬剤を任意に配置した学習用画像を生成する学習用画像生成処理と、生成した学習用画像における薬剤の領域に対応する第2領域情報を生成し、生成した第2領域情報を学習用画像に対する正解データとする正解データ生成処理と、生成した学習用画像と正解データとのペアを、学習データとしてメモリに記憶させる記憶制御と、を行う。 In order to achieve the above object, the invention according to a first aspect is a learning data creation device comprising a processor and a memory, the processor creates learning data for machine learning, the processor creates learning data for machine learning, and the processor creates learning data for machine learning. An acquisition process that acquires a photographed image, a learning image generation process that generates a learning image in which drugs are arbitrarily arranged from the acquired photographic image, and second area information corresponding to the area of the drug in the generated learning image. Correct data generation processing is performed in which the generated second area information is used as correct data for the learning image, and storage control is performed in which a pair of the generated learning image and correct data is stored in a memory as learning data. .
本発明の第1態様によれば、薬剤が撮影された撮影画像から薬剤を任意に配置した学習用画像を生成する。また、生成した学習用画像における薬剤の領域に対応する第2領域情報を生成し、生成した第2領域情報を学習用画像に対する正解データとする。この正解データの生成は、プロセッサによる正解データ生成処理により行うことができるため、正解データの作成に手間と時間を要しない。 According to the first aspect of the present invention, a learning image in which medicines are arbitrarily arranged is generated from a photographed image in which medicines are photographed. Further, second area information corresponding to the drug area in the generated learning image is generated, and the generated second area information is used as correct data for the learning image. This generation of correct answer data can be performed by correct answer data generation processing by a processor, so that no effort or time is required to create the correct answer data.
このようにして生成した学習用画像と正解データとのペアを学習データとすることで、多くの学習データを生成すること(水増しすること)ができる。 By using the pair of the learning image and correct answer data generated in this way as learning data, it is possible to generate (inflate) a large amount of learning data.
本発明の第2態様に係る学習データ作成装置において、プロセッサの取得処理は、取得した撮影画像内の薬剤の領域に対応する第1領域情報を取得し、正解データ生成処理は、取得した第1領域情報に基づいて第2領域情報を生成することが好ましい。 In the learning data generation device according to the second aspect of the present invention, the acquisition process of the processor acquires first area information corresponding to the drug area in the acquired photographic image, and the correct data generation process acquires first area information corresponding to the acquired first area. Preferably, the second region information is generated based on the region information.
本発明の第3態様に係る学習データ作成装置において、プロセッサの取得処理は、複数の薬剤が撮影された撮影画像、又は薬剤が撮影された複数の撮影画像を取得し、複数の薬剤の領域に対応する複数の第1領域情報を取得することが好ましい。 In the learning data creation device according to the third aspect of the present invention, the acquisition process of the processor includes acquiring captured images in which a plurality of drugs are captured, or a plurality of captured images in which drugs are captured, and It is preferable to acquire a plurality of pieces of corresponding first area information.
本発明の第4態様に係る学習データ作成装置において、第1領域情報は、撮影画像内の薬剤の領域を手動で設定された領域情報、撮影画像内の薬剤の領域を画像処理により自動で抽出した領域情報、又は撮影画像内の薬剤の領域を画像処理により自動で抽出し、かつ手動で調整された領域情報であることが好ましい。 In the learning data creation device according to the fourth aspect of the present invention, the first region information includes region information that manually sets the drug region in the captured image, and region information that automatically extracts the drug region in the captured image by image processing. Preferably, the area information is area information obtained by automatically extracting the drug area in the photographed image through image processing and manually adjusting the area information.
本発明の第5態様に係る学習データ作成装置において、正解データは、薬剤の領域に対応する正解画像、薬剤の領域を矩形で囲むバウンディングボックス情報、及び薬剤の領域のエッジを示すエッジ情報のうちの少なくとも1つを含むことが好ましい。尚、正解画像は、マスク画像を含む。 In the learning data creation device according to the fifth aspect of the present invention, the correct data includes a correct image corresponding to the drug region, bounding box information surrounding the drug region with a rectangle, and edge information indicating edges of the drug region. It is preferable to include at least one of the following. Note that the correct image includes a mask image.
本発明の第6態様に係る学習データ作成装置において、学習用画像生成処理は、撮影画像を平行移動、反転、回転、又は拡縮させて学習用画像を生成し、正解データ生成処理は、第1領域情報を撮影画像に対応して平行移動、反転、回転、又は拡縮させて正解データを生成することが好ましい。学習用画像の生成と正解データの生成とは、並列処理にて同時に生成してもよいし、学習用画像及び正解データのうちのいずれか一方を生成してから他方を生成してもよい。 In the learning data generation device according to the sixth aspect of the present invention, the learning image generation process generates the learning image by translating, inverting, rotating, or scaling the captured image, and the correct data generation process includes the first It is preferable to generate correct data by translating, inverting, rotating, or scaling the region information in accordance with the photographed image. The learning image and the correct data may be generated simultaneously through parallel processing, or one of the learning image and the correct data may be generated before the other is generated.
本発明の第7態様に係る学習データ作成装置において、学習用画像生成処理は、撮影画像を平行移動、反転、回転、又は拡縮させた2以上の画像を合成して学習用画像を生成し、正解データ生成処理は、2以上の画像の各々に対応する第1領域情報を撮影画像に対応して平行移動、反転、回転、又は拡縮させて正解データを生成することが好ましい。これにより、複数の薬剤の画像からなる学習用画像とその正解データを生成することができる。 In the learning data creation device according to the seventh aspect of the present invention, the learning image generation process generates a learning image by synthesizing two or more images obtained by translating, inverting, rotating, or scaling a captured image; Preferably, the correct data generation process generates correct data by translating, inverting, rotating, or scaling the first area information corresponding to each of the two or more images in accordance with the captured image. Thereby, it is possible to generate a learning image consisting of images of a plurality of drugs and its correct answer data.
本発明の第8態様に係る学習データ作成装置において、プロセッサは、取得した第1領域情報に基づいて撮影画像から薬剤の領域を切り出した薬剤画像を取得する薬剤画像取得処理を含み、学習用画像生成処理は、取得した薬剤画像を平行移動、反転、回転、又は拡縮させて学習用画像を生成し、正解データ生成処理は、第1領域情報を薬剤画像に対応して平行移動、反転、回転、又は拡縮させて正解データを生成することが好ましい。 In the learning data creation device according to the eighth aspect of the present invention, the processor includes a drug image acquisition process for acquiring a drug image in which a drug region is cut out from a captured image based on the acquired first region information, and The generation process involves translating, inverting, rotating, or scaling the acquired drug image to generate a learning image, and the correct data generation process involves translating, inverting, or rotating the first region information in accordance with the drug image. It is preferable to generate the correct data by enlarging or reducing the data.
本発明の第9態様に係る学習データ作成装置において、プロセッサは、取得した第1領域情報に基づいて撮影画像から薬剤の領域を切り出した薬剤画像を取得する薬剤画像取得処理を含み、学習用画像生成処理は、取得した薬剤画像を平行移動、反転、回転、又は拡縮させた2以上の画像を合成して学習用画像を生成し、正解データ生成処理は、第1領域情報を薬剤画像に対応して平行移動、反転、回転、又は拡縮させた2以上の第2領域情報を合成して正解データを生成することが好ましい。これにより、複数の薬剤の画像からなる学習用画像とその正解データを生成することができる。 In the learning data creation device according to the ninth aspect of the present invention, the processor includes a drug image acquisition process for acquiring a drug image in which a drug region is cut out from a captured image based on the acquired first region information; In the generation process, a learning image is generated by combining two or more images obtained by translating, inverting, rotating, or scaling the acquired drug image, and in the correct data generation process, the first area information is made to correspond to the drug image. It is preferable to generate correct data by synthesizing two or more pieces of second area information that have been translated, reversed, rotated, or scaled. Thereby, it is possible to generate a learning image consisting of images of a plurality of drugs and its correct answer data.
本発明の第10態様に係る学習データ作成装置において、学習用画像生成処理は、複数の薬剤を含む学習用画像を生成する際に、複数の薬剤の全部又は一部が点又は線で接触する学習用画像を生成することが好ましい。 In the learning data creation device according to the tenth aspect of the present invention, in the learning image generation process, when generating a learning image including a plurality of drugs, all or part of the plurality of drugs are in contact with each other at points or lines. It is preferable to generate training images.
本発明の第11態様に係る学習データ作成装置において、正解データは、複数の薬剤画像の点又は線で接触する箇所のみを示すエッジ画像を含むことが好ましい。複数の薬剤の全部又は一部が点又は線で接触する学習用画像に対する正解データとして、複数の薬剤画像の点又は線で接触する箇所のみを示すエッジ画像を含めることができる。この学習データは、複数の薬剤画像の点又は線で接触する箇所の分離に有用なものとなる。 In the learning data creation device according to the eleventh aspect of the present invention, it is preferable that the correct data includes an edge image that shows only the points or lines of the plurality of drug images that are in contact with each other. As correct answer data for a learning image in which all or part of a plurality of medicines are in contact with a point or a line, an edge image showing only a portion of a plurality of medicine images that are in contact with a point or a line can be included. This learning data is useful for separating points or lines that touch each other in a plurality of drug images.
本発明の第12態様に係る学習データ作成装置において、薬剤は、少なくとも一部が透明な薬剤であることが好ましい。少なくとも一部が透明な薬剤は、全体が不透明な薬剤と比較して抽出が難しく、かつ学習データが少ないため、少なくとも一部が透明な薬剤に対する学習データの生成は特に有効である。 In the learning data creation device according to the twelfth aspect of the present invention, it is preferable that the drug is at least partially transparent. Since drugs that are at least partially transparent are more difficult to extract than drugs that are entirely opaque and require less learning data, it is particularly effective to generate learning data for drugs that are at least partially transparent.
本発明の第13態様に係る学習データ作成装置において、プロセッサによる学習用画像生成処理は、複数の薬剤を含む学習用画像を生成する際に、透明な薬剤以外の薬剤を任意に配置することが好ましい。少なくとも一部が透明な薬剤の場合、その薬剤画像を任意に配置したものと、透明な薬剤を同じ位置に配置して撮影したものとは、照明光との位置関係で異なる画像になるからである。 In the learning data creation device according to the thirteenth aspect of the present invention, the learning image generation process by the processor may include arbitrarily arranging drugs other than transparent drugs when generating the learning image including a plurality of drugs. preferable. In the case of a drug that is at least partially transparent, an image of the drug arranged arbitrarily and an image taken with the transparent drug placed in the same position will result in different images depending on the positional relationship with the illumination light. be.
本発明の第14態様に係る学習データ作成装置において、撮影画像は、自薬局が取り扱っている薬剤を撮影した画像であることが好ましい。自薬局が取り扱っている薬剤に対する学習データを作成できればよいからである。 In the learning data creation device according to the fourteenth aspect of the present invention, it is preferable that the photographed image is an image of a drug handled by the own pharmacy. This is because it is only necessary to create learning data for drugs handled by the own pharmacy.
第15態様に係る発明は、撮影された薬剤を任意に配置して生成された学習用画像と、学習用画像における薬剤の領域を示す第2領域情報を有する正解データと、のペアからなる学習データである。 The invention according to the fifteenth aspect provides learning that includes a pair of a learning image generated by arbitrarily arranging photographed drugs, and correct answer data having second area information indicating the area of the drug in the learning image. It is data.
本発明の第16態様に係る機械学習装置は、学習モデルと、上記の学習データを使用し、学習モデルを機械学習させる学習制御部と、を備える。 A machine learning device according to a sixteenth aspect of the present invention includes a learning model and a learning control unit that performs machine learning on the learning model using the above learning data.
本発明の第17態様に係る機械学習装置において、学習モデルは、畳み込みニューラルネットワークで構成されることが好ましい。 In the machine learning device according to the seventeenth aspect of the present invention, the learning model is preferably configured with a convolutional neural network.
第18態様に係る発明は、プロセッサが、以下の各ステップの処理を行うことにより機械学習用の学習データを作成する学習データ作成方法であって、薬剤が撮影された撮影画像を取得するステップと、取得した撮影画像から薬剤を任意に配置した学習用画像を生成するステップと、生成した学習用画像における薬剤の領域に対応する第2領域情報を生成し、生成した第2領域情報を学習用画像に対する正解データとするステップと、生成した学習用画像と正解データとのペアを、学習データとしてメモリに記憶させるステップと、を含む。 The invention according to the 18th aspect is a learning data creation method in which a processor creates learning data for machine learning by performing processing in the following steps, the step of acquiring a photographed image in which a drug is photographed; , a step of generating a learning image in which drugs are arbitrarily arranged from the acquired photographed image, generating second area information corresponding to the area of the drug in the generated learning image, and using the generated second area information as a learning image. The method includes a step of setting the image as correct data, and a step of storing the generated pair of the learning image and the correct data in a memory as the learning data.
本発明の第19態様に係る学習データ作成方法において、正解データは、薬剤の領域に対応する正解画像、薬剤の領域を矩形で囲むバウンディングボックス情報、及び薬剤の領域のエッジを示すエッジ情報のうちの少なくとも1つを含むことが好ましい。 In the learning data creation method according to the nineteenth aspect of the present invention, the correct data includes a correct image corresponding to a drug region, bounding box information surrounding the drug region with a rectangle, and edge information indicating an edge of the drug region. It is preferable to include at least one of the following.
本発明の第20態様に係る学習データ作成方法において、学習用画像を生成するステップは、複数の薬剤を配置する際に、複数の薬剤の全部又は一部を点又は線で接触させることが好ましい。 In the learning data creation method according to the 20th aspect of the present invention, it is preferable that in the step of generating a learning image, when arranging a plurality of drugs, all or part of the plurality of drugs are brought into contact with a point or a line. .
本発明の第21態様に係る学習データ作成方法において、正解データは、複数の薬剤の点又は線で接触する箇所のみを示すエッジ画像を含むことが好ましい。 In the learning data creation method according to the 21st aspect of the present invention, it is preferable that the correct data includes an edge image showing only the points or lines of contact between the plurality of drugs.
本発明の第22態様に係る学習データ作成方法において、薬剤は、少なくとも一部が透明な薬剤であることが好ましい。 In the learning data creation method according to the twenty-second aspect of the present invention, it is preferable that the drug is at least partially transparent.
本発明の第23態様に係る学習データ作成方法において、学習用画像を生成するステップは、複数の薬剤を含む学習用画像を生成する際に、透明な薬剤以外の薬剤を任意に配置することが好ましい。 In the learning data creation method according to the twenty-third aspect of the present invention, the step of generating a learning image may include arbitrarily arranging drugs other than transparent drugs when generating a learning image including a plurality of drugs. preferable.
第24態様に係る発明は、薬剤が撮影された撮影画像を取得する機能と、取得した撮影画像から薬剤を任意に配置した学習用画像を生成する機能と、生成した学習用画像における薬剤の領域に対応する第2領域情報を生成し、生成した第2領域情報を学習用画像に対する正解データとする機能と、生成した学習用画像と正解データとのペアを、学習データとしてメモリに記憶させる機能と、をコンピュータにより実現させる学習データ作成プログラムである。 The invention according to the twenty-fourth aspect provides a function of acquiring a photographed image in which a drug is photographed, a function of generating a learning image in which a drug is arbitrarily arranged from the acquired photographic image, and a region of the drug in the generated learning image. A function that generates second area information corresponding to and uses the generated second area information as correct answer data for the learning image, and a function that stores the pair of the generated learning image and correct answer data in memory as learning data. This is a learning data creation program that uses a computer to realize the following.
本発明によれば、薬剤を撮影した撮影画像から薬剤の領域に対応する領域情報を認識する学習モデルを機械学習させるための学習データを効率よく作成することができる。 According to the present invention, it is possible to efficiently create learning data for machine learning a learning model that recognizes area information corresponding to a drug area from a captured image of a drug.
以下、添付図面に従って本発明に係る学習データ作成装置、方法、プログラム、学習データ及び機械学習装置の好ましい実施形態について説明する。 Hereinafter, preferred embodiments of a learning data creation device, method, program, learning data, and machine learning device according to the present invention will be described with reference to the accompanying drawings.
[本発明の概要]
図1は、学習済みの学習モデルに入力される撮影画像と学習モデルから取得したい出力結果とを示す図である。[Summary of the present invention]
FIG. 1 is a diagram showing captured images input to a trained learning model and output results to be obtained from the learning model.
図1(B)に示す学習モデルの出力結果は、図1(A)に示した撮影画像内の薬剤の領域(薬剤領域)を推論した推論結果であり、本例では、薬剤領域と背景領域とを領域分類したマスク画像である。尚、推論結果は、マスク画像に限らず、例えば、薬剤領域を矩形の枠で囲むバウンディングボックス、又はバウンディングボックスの対角の2点の座標、又はこれらの組み合わせが考えられる。 The output result of the learning model shown in FIG. 1(B) is the inference result of inferring the drug region (drug region) in the photographed image shown in FIG. 1(A), and in this example, the drug region and the background region are This is a mask image that is classified into regions. Note that the inference result is not limited to the mask image, but may be, for example, a bounding box surrounding the drug region with a rectangular frame, coordinates of two diagonal points of the bounding box, or a combination thereof.
学習済みの学習モデルにより、任意の入力画像から所望の出力結果(推論結果)を得るためには、未学習の学習モデルを機械学習させるための学習データを大量に準備する必要がある。 In order to obtain a desired output result (inference result) from an arbitrary input image using a trained learning model, it is necessary to prepare a large amount of learning data for performing machine learning on an untrained learning model.
図2は、学習データの一例を示す図である。 FIG. 2 is a diagram showing an example of learning data.
図2(A)~(C)は、それぞれ左側が薬剤の撮影画像(学習用画像)であり、右側が撮影画像に対する正解データであり、左右の撮影画像と正解データとのペアが、学習データである。本例の正解データは、各薬剤の領域を背景から区別するマスク画像である。 In Figures 2 (A) to (C), the left side is the photographed image of the drug (learning image), the right side is the correct data for the photographed image, and the pair of the left and right photographed images and the correct data is the learning data. It is. The correct data in this example is a mask image that distinguishes each drug region from the background.
基本的に、学習データには、図2(A)~(C)に示した左側の撮影画像が必要であるが、例えば、新薬等、数が少ない薬剤も存在するため、多くの画像が集まらないという問題がある。 Basically, the training data requires the captured images on the left side shown in Figures 2 (A) to (C), but for example, there are new drugs and other drugs that are rare in number, so many images cannot be collected. The problem is that there is no.
撮影画像(学習用画像)に対する正解データの作成は、撮影画像をディスプレイに表示させ、ディスプレイに表示された撮影画像を見ながら薬剤の領域をユーザが画素単位で塗り潰して作成するのが一般的である。 To create correct answer data for a photographed image (learning image), it is common for the user to display the photographed image on a display and fill in the drug area pixel by pixel while looking at the photographed image displayed on the display. be.
また、正解データを自動で作成する場合、例えば、撮影画像からテンプレートマッチングにより薬剤の位置、回転角を計算することで求めることができる。 Furthermore, when correct data is automatically created, it can be obtained, for example, by calculating the position and rotation angle of the drug using template matching from the photographed image.
図3は、正解データを自動で作成する場合の画像処理を示す概念図である。 FIG. 3 is a conceptual diagram showing image processing when correct data is automatically created.
薬剤を撮影した撮影画像ITPに対して、その薬剤を示す画像であるテンプレート画像Itplを用意する。薬剤の形状が円形でない場合には、探索する回転角毎の複数のテンプレート画像Itplを用意することが好ましい。A template image I tpl, which is an image showing the drug, is prepared for the photographed image ITP of the drug. If the shape of the drug is not circular, it is preferable to prepare a plurality of template images I tpl for each rotation angle to be searched.
そして、撮影画像ITPの中からテンプレート画像Itplと相関が最も高くなる位置、及び回転角のテンプレート画像を探索すること(テンプレートマッチング)により、相関が最も高い時のテンプレート画像Itplの位置、及びテンプレート画像Itplの回転角に基づいて、撮影画像ITPにおける薬剤の領域を示す正解データを作成することができる。Then, by searching for a template image at a position and rotation angle that has the highest correlation with the template image I tpl from among the photographed images ITP (template matching), the position of the template image I tpl when the correlation is highest, and Based on the rotation angle of the template image I tpl , correct data indicating the area of the drug in the photographed image ITP can be created.
また、撮影画像ITPと正解データ(例えば、マスク画像)とを重ね合わせてディスプレイに表示し、マスク画像に誤差がある場合には、ユーザがマスク画像を画素単位で修正するようにしてもよい。 Alternatively, the photographed image ITP and the correct data (for example, a mask image) may be superimposed and displayed on the display, and if there is an error in the mask image, the user may correct the mask image pixel by pixel.
<シミュレーションにより学習データを作成する第1実施形態>
図4は、シミュレーションにより学習データを作成する第1実施形態を示す図である。<First embodiment of creating learning data through simulation>
FIG. 4 is a diagram showing a first embodiment in which learning data is created by simulation.
図4(A)は、薬剤を撮影した撮影画像と、その撮影画像に基づいて手動又は自動で生成したマスク画像とのペアを示す図である。 FIG. 4A is a diagram showing a pair of a photographed image of a drug and a mask image manually or automatically generated based on the photographed image.
本発明は、撮影画像とマスク画像とのペアから、シミュレーションにより学習データを作成する(学習データを水増しする)。 In the present invention, learning data is created by simulation from a pair of a captured image and a mask image (the learning data is padded).
図4(B)は、それぞれ図4(A)に示した撮影画像とマスク画像とをそれぞれ反転した撮影画像及びマスク画像のペアを示す図である。 FIG. 4(B) is a diagram showing a pair of a photographed image and a mask image, which are obtained by inverting the photographed image and mask image shown in FIG. 4(A), respectively.
図4(B)に示す右側の反転(左右反転)されたマスク画像は、図4(B)に示す左側の反転された撮影画像における薬剤の領域を示すマスク画像となる。したがって、反転された撮影画像は、新たな学習用画像とすることができ、反転されたマスク画像は、新たに生成された学習用画像に対する正解データとすることができる。尚、画像の反転は、左右反転に限らず、上下反転も含む。また、先に左の画像を作っておき、そこから薬剤画像の領域を検出することによって、右の画像を作成するようにしてもよい。 The reversed (horizontally reversed) mask image on the right side shown in FIG. 4(B) becomes a mask image showing the area of the drug in the reversed captured image on the left side shown in FIG. 4(B). Therefore, the inverted captured image can be used as a new learning image, and the inverted mask image can be used as correct data for the newly generated learning image. Note that image reversal is not limited to horizontal reversal, but also includes vertical reversal. Alternatively, the right image may be created by first creating the left image and detecting the area of the drug image therefrom.
図4(C)は、図4(A)及び図4(B)に示した画像を加算した画像を示す図である。 FIG. 4(C) is a diagram showing an image obtained by adding the images shown in FIG. 4(A) and FIG. 4(B).
図4(C)に示す左側の撮影画像は、図4(A)に示した撮影画像と図4(B)に示した反転された撮影画像とを合成することで作成することができる。即ち、図4(C)に示す撮影画像は、図4(A)に示す撮影画像に、図4(B)に示す反転された撮影画像中の薬剤の領域を切り出した画像(薬剤画像)を貼り付けることで作成することができる。尚、反転された撮影画像からの薬剤画像の切り出しは、図4(B)の反転されたマスク画像に基づいて、図4(A)に示した撮影画像から薬剤の領域を切り出す処理により行うことができる。また、2以上の薬剤画像を合成する方法は、上記のようにマスク画像を使用する方法に限らない。例えば、薬剤が撮影されていない背景のみの背景画像を使用して、図4(A)及び図4(B)からそれぞれ薬剤画像のみを抽出し、抽出した各薬剤画像を背景画像に合成することで、図4(C)に示した撮影画像を生成することができる。 The photographed image on the left side shown in FIG. 4(C) can be created by combining the photographed image shown in FIG. 4(A) and the inverted photographed image shown in FIG. 4(B). That is, the photographed image shown in FIG. 4(C) is obtained by adding an image (drug image) obtained by cutting out the drug area in the inverted photographed image shown in FIG. 4(B) to the photographed image shown in FIG. 4(A). It can be created by pasting. Note that cutting out the drug image from the inverted captured image is performed by cutting out the drug area from the captured image shown in FIG. 4(A) based on the inverted mask image in FIG. 4(B). I can do it. Furthermore, the method of combining two or more drug images is not limited to the method of using mask images as described above. For example, by using a background image of only the background in which no drug is photographed, only the drug images are extracted from each of FIGS. 4(A) and 4(B), and each extracted drug image is combined with the background image. Thus, the photographed image shown in FIG. 4(C) can be generated.
また、図4(C)に示す右側のマスク画像は、図4(A)に示したマスク画像と図4(B)に示す反転されたマスク画像とを加算することで作成することができる。尚、2つのマスク画像を加算する際に、インスタンス分離のために、本例では図4(C)の反転されたマスク画像の薬剤の領域の画素値を例えば「0.5」、背景の画素値を「0」として加算することで、生成されたマスク画像における2つの薬剤の領域の画素値を異ならせる。 Further, the right mask image shown in FIG. 4(C) can be created by adding the mask image shown in FIG. 4(A) and the inverted mask image shown in FIG. 4(B). Note that when adding two mask images, in order to separate instances, in this example, the pixel value of the drug area in the inverted mask image of FIG. By adding the value as "0", the pixel values of the two drug regions in the generated mask image are made different.
このようにして、図4(A)に示した撮影画像とマスク画像のペアからなる1つの学習データから、図4(B)及び(C)に示した2つの学習データを作成することができる。 In this way, the two learning data shown in FIGS. 4(B) and (C) can be created from one learning data consisting of the pair of photographed image and mask image shown in FIG. 4(A). .
また、上記の第1実施形態では、図4(A)に示した撮影画像及びマスク画像をそれぞれ反転し、図4(B)に示した新たな撮影画像及びマスク画像のペアからなる学習データを作成するようにしたが、これに限らず、図4(A)に示した撮影画像及びマスク画像をそれぞれ同期して平行移動、回転、又は拡縮させて、新たな撮影画像及びマスク画像のペアからなる学習データを作成してもよい。尚、撮影画像及びマスク画像をそれぞれ同期して平行移動、回転、又は縮小させることで、背景に余白が生じる場合には、背景と同様な画素値で余白を埋めることが好ましい。 In addition, in the first embodiment described above, the captured image and the mask image shown in FIG. 4(A) are each inverted, and the learning data consisting of the new captured image and mask image pair shown in FIG. 4(B) is created. However, the present invention is not limited to this, and the captured image and mask image shown in FIG. You may also create learning data. Note that if a blank space is created in the background by synchronously moving, rotating, or reducing the captured image and the mask image, it is preferable to fill the blank space with pixel values similar to those of the background.
更に、上記の第1実施形態では、1つの薬剤が撮影された撮影画像及びマスク画像から新たな撮影画像及びマスク画像を作成するが、複数の異なる薬剤が別々に撮影された複数の撮影画像及びマスク画像、又は複数の異なる薬剤が同時に撮影された撮影画像及びマスク画像から、新たな撮影画像及びマスク画像を作成するようにしてもよい。 Furthermore, in the first embodiment described above, a new photographic image and a mask image are created from a photographic image and a mask image in which one drug is photographed, but a new photographic image and a mask image are created from a photographic image and a mask image in which a plurality of different drugs are photographed separately. A new photographed image and a mask image may be created from a mask image or a photographed image and a mask image in which a plurality of different drugs are photographed simultaneously.
<シミュレーションにより学習データを作成する第2実施形態>
図5は、シミュレーションにより学習データを作成する第2実施形態を示す図である。<Second embodiment of creating learning data through simulation>
FIG. 5 is a diagram showing a second embodiment in which learning data is created by simulation.
図5(A)は、薬剤を撮影した撮影画像と、その撮影画像に基づいて手動又は自動で生成したマスク画像とのペアを示す図であり、図4(A)に示したペアと同一である。 FIG. 5(A) is a diagram showing a pair of a photographed image of a drug and a mask image generated manually or automatically based on the photographed image, and is the same as the pair shown in FIG. 4(A). be.
図5(B)は、それぞれ図5(A)に示した撮影画像及びマスク画像からそれぞれ切り出す薬剤領域を示す図である。 FIG. 5(B) is a diagram showing drug regions cut out from the captured image and mask image shown in FIG. 5(A), respectively.
本例では、薬剤領域を囲む矩形の枠内の領域を、画像を切り出す領域(切出領域)としている。尚、マスク画像により薬剤領域は既知であるため、マスク画像に基づいて薬剤領域を囲む矩形の枠内の画像を切り出すことができる。 In this example, the area within the rectangular frame surrounding the drug area is set as the area from which the image is cut out (cutout area). Note that since the drug area is known from the mask image, an image within a rectangular frame surrounding the drug area can be cut out based on the mask image.
図5(C)は、それぞれ図5(A)に示した撮影画像及びマスク画像から切り出された切出領域の画像を示す。撮影画像からの薬剤画像の切り出しは、図5(A)に示したマスク画像に基づいて、図5(A)に示した撮影画像から薬剤の領域を切り出す処理(薬剤画像取得処理)により行うことができる。尚、図5(A)に示したマスク画像は、薬剤の領域を示す情報(第1領域情報)を有するため、マスク画像から薬剤の領域(以下、「薬剤マスク画像」という)を切り出すことができる。また、薬剤画像取得処理には、切り出された後の状態の画像を、メモリ等から読み出す処理が含まれていてもよい。 FIG. 5(C) shows an image of a cutout area cut out from the photographed image and mask image shown in FIG. 5(A), respectively. Cutting out the drug image from the captured image is performed by the process of cutting out the drug area from the captured image shown in FIG. 5(A) (drug image acquisition process) based on the mask image shown in FIG. 5(A). I can do it. Note that since the mask image shown in FIG. 5(A) has information indicating the drug area (first area information), it is possible to cut out the drug area (hereinafter referred to as "drug mask image") from the mask image. can. Further, the drug image acquisition process may include a process of reading out the image after it has been cut out from a memory or the like.
図5(D)は、切り出された薬剤画像及び薬剤マスク画像を任意の位置及び任意の回転角で貼り付けて作成した、新たな撮影画像及びマスク画像を示す図である。 FIG. 5(D) is a diagram showing a new captured image and a mask image created by pasting the cut out drug image and drug mask image at an arbitrary position and an arbitrary rotation angle.
図5(D)に示す撮影画像及びマスク画像は、図5(A)に示した撮影画像及びマスク画像から上記の画像処理により作成した、新たな学習用画像及び正解データのペアからなる学習データとなる。 The photographed image and mask image shown in FIG. 5(D) are learning data consisting of a pair of a new learning image and correct answer data created by the above image processing from the photographed image and mask image shown in FIG. 5(A). becomes.
図5(E)は、切り出された薬剤画像及び薬剤マスク画像を任意の位置及び任意に回転角で貼り付けて作成した、新たな撮影画像及びマスク画像を示す図であり、特に複数の薬剤画像が点又は線で接触するように作成されている。 FIG. 5E is a diagram showing a new captured image and mask image created by pasting the cut out drug image and drug mask image at an arbitrary position and arbitrary rotation angle, and in particular, a diagram showing a new captured image and a mask image created by pasting the cut out drug image and drug mask image at an arbitrary position and at an arbitrary rotation angle. are created so that they touch at a point or line.
学習モデルにおける推論結果を向上させるためには、薬剤同士が点又は線で接触している状態の学習データを大量に作成する必要がある。薬剤同士が点又は線で接触している撮影画像から、各薬剤の領域を精度よく推論するのは、各薬剤が接触せずに孤立している場合に比べて難しいからである。 In order to improve the inference results of the learning model, it is necessary to create a large amount of learning data in which drugs are in contact with each other at points or lines. This is because it is more difficult to accurately infer the area of each drug from a photographed image in which the drugs are in contact with each other at points or lines than when the drugs are isolated without contact.
図5(E)に示す左側のマスク画像は、各薬剤領域が接しないように画像処理することが好ましい。各薬剤領域が接触する箇所は既知であるため、その接触する箇所を背景色に置換することで、各薬剤領域が接触しないようにできる。 The mask image on the left side shown in FIG. 5(E) is preferably image-processed so that the respective drug regions do not touch each other. Since the locations where each drug area contacts are known, by replacing the contact locations with the background color, it is possible to prevent each drug area from contacting each other.
また、薬剤同士が点又は線で接触する各薬剤が同一薬剤の場合、インスタンス分離のために、薬剤領域の画素値を異ならせることが好ましい。この場合、マスク画像における各薬剤領域は、その画素値の違いで認識できるため、薬剤領域が接触する箇所を背景色に置換しなくてもよい。 Furthermore, if the drugs that are in contact with each other at points or lines are the same drug, it is preferable to make the pixel values of the drug regions different for instance separation. In this case, since each drug region in the mask image can be recognized by the difference in pixel values, there is no need to replace the portions where the drug regions come into contact with the background color.
以上のようにして、薬剤が撮影された撮影画像とその撮影画像内の薬剤の領域を示す第1領域情報(マスク画像)とを元に、多くの学習データを作成することができる。 As described above, a large amount of learning data can be created based on a photographed image in which a drug is photographed and the first area information (mask image) indicating the region of the drug in the photographed image.
[学習データ作成装置の構成]
図6は、本発明に係る学習データ作成装置のハードウェア構成の一例を示すブロック図である。[Configuration of learning data creation device]
FIG. 6 is a block diagram showing an example of the hardware configuration of the learning data creation device according to the present invention.
図6に示す学習データ作成装置1は、例えば、コンピュータにより構成することができ、主として画像取得部22、CPU(Central Processing Unit)24、操作部25、RAM(Random Access Memory)26、ROM(Read Only Memory)27、メモリ28及び表示部29から構成されている。
The learning
画像取得部22は、撮影装置10により薬剤が撮影された撮影画像を、撮影装置10から取得する。
The
撮影装置10により撮影される薬剤は、例えば、服用1回分の薬剤、又は任意の薬剤であり、薬包に入っているものでもよいし、薬包に入っていないものでもよい。
The medicine photographed by the photographing
図7は、複数の薬剤が一包化された薬包を示す平面図である。 FIG. 7 is a plan view showing a medicine package containing a plurality of medicines.
図7に示す薬包TPは、1回に服用される複数の薬剤が透明な包に収納され、一包ずつパッキングされたものである。薬包TPは、図9及び図10に示すように帯状に連結されており、各薬包TPを切り離し可能にする切取線が入っている。尚、図7に示す薬包TPには、6個の薬剤Tが一包化されている。 In the medicine package TP shown in FIG. 7, a plurality of medicines to be taken at one time are stored in a transparent package and packed one by one. As shown in FIGS. 9 and 10, the medicine packages TP are connected in a band shape, and each medicine package TP has a cutoff line that allows the medicine packages TP to be separated. Note that six medicines T are packaged in the medicine package TP shown in FIG. 7 .
図8は、図6に示した撮影装置の概略構成を示すブロック図である。 FIG. 8 is a block diagram showing a schematic configuration of the imaging device shown in FIG. 6.
図8に示す撮影装置10は、薬剤を撮影する2台のカメラ12A、12Bと、薬剤を照明する2台の照明装置16A,16Bと、撮影制御部13とから構成されている。
The photographing
図9及び図10は、それぞれ撮影装置の概略構成を示す平面図及び側面図である。 9 and 10 are a plan view and a side view, respectively, showing the schematic configuration of the photographing device.
薬包TPは、水平(x-y平面)に設置された透明なステージ14の上に載置される。
The medicine package TP is placed on a
カメラ12A、12Bは、ステージ14と直交する方向(z方向)に、ステージ14を挟んで互いに対向して配置される。カメラ12Aは、薬包TPの表面に正対し、薬包TPを上方から撮影する。カメラ12Bは、薬包TPの裏面に正対し、薬包TPを下方から撮影する。
The
ステージ14を挟んで、カメラ12Aの側には、照明装置16Aが備えられ、カメラ12Bの側には、照明装置16Bが備えられる。
A
照明装置16Aは、ステージ14の上方に配置され、ステージ14に載置された薬包TPを上方から照明する。照明装置16Aは、放射状に配置された4つの発光部16A1~16A4を有し、直交する4方向から照明光を照射する。各発光部16A1~16A4の発光は、個別に制御される。
The
照明装置16Bは、ステージ14の下方に配置され、ステージ14に載置された薬包TPを下方から照明する。照明装置16Bは、照明装置16Aと同様に放射状に配置された4つの発光部16B1~16B4を有し、直交する4方向から照明光を照射する。各発光部16B1~16B4の発光は、個別に制御される。
The
撮影は、次のように行われる。まず、カメラ12Aを用いて、薬包TPを上方から撮影する。撮影の際には、照明装置16Aの各発光部16A1~16A4を順次発光させ、4枚の画像の撮影を行い、続いて、各発光部16A1~16A4を同時に発光させ、1枚の画像の撮影を行う。次に、下方の照明装置16Bの各発光部16B1~16B4を同時に発光させるとともに、図示しないリフレクタを挿入し、リフレクタを介して薬包TPを下から照明し、カメラ12Aを用いて上方から薬包TPの撮影を行う。
Photographing is performed as follows. First, the medicine package TP is photographed from above using the
各発光部16A1~16A4を順次発光させて撮影される4枚の画像は、それぞれ照明方向が異なっており、薬剤の表面に刻印(凹凸)がある場合に刻印による影の出方が異なるものとなる。これらの4枚の撮影画像は、薬剤Tの表面側の刻印を強調した刻印画像を生成するために使用される。 The four images taken by sequentially emitting light from each of the light emitting parts 16A1 to 16A4 have different illumination directions, and if there is an imprint (unevenness) on the surface of the drug, the appearance of shadows due to the imprint will be different. Become. These four captured images are used to generate a stamp image that emphasizes the stamp on the front side of the medicine T.
各発光部16A1~16A4を同時に発光させて撮影される1枚の画像は、輝度ムラのない画像であり、例えば、薬剤Tの表面側の画像(薬剤画像)を切り出す場合に使用され、また、刻印画像が重畳される撮影画像である。 One image taken by simultaneously emitting light from each of the light emitting units 16A1 to 16A4 is an image without uneven brightness, and is used, for example, when cutting out an image of the surface side of the drug T (drug image), and This is a photographed image on which a stamped image is superimposed.
また、リフレクタを介して薬包TPを下方から照明し、カメラ12Aを用いて上方から薬包TPが撮影される画像は、複数の薬剤Tの領域を認識する場合に使用される撮影画像である。
In addition, an image in which the medicine package TP is illuminated from below through a reflector and the medicine package TP is photographed from above using the
次に、カメラ12Bを用いて、薬包TPを下方から撮影する。撮影の際には、照明装置16Bの各発光部16B1~16B4を順次発光させ、4枚の画像の撮影を行い、続いて、各発光部16B1~16B4を同時に発光させ、1枚の画像の撮影を行う。
Next, the medicine package TP is photographed from below using the
4枚の撮影画像は、薬剤Tの裏面側の刻印を強調した刻印画像を生成するために使用され、各発光部16B1~16B4を同時に発光させて撮影される1枚の画像は、輝度ムラのない画像であり、例えば、薬剤Tの裏面側の薬剤画像を切り出す場合に使用され、また、刻印画像が重畳される撮影画像である。 The four captured images are used to generate a stamp image that emphasizes the stamp on the back side of the drug T, and one image captured by simultaneously emitting light from each of the light emitting sections 16B1 to 16B4 is used to eliminate uneven brightness. For example, this is an image that is used when cutting out a drug image on the back side of the drug T, and is also a photographed image on which a stamp image is superimposed.
図8に示した撮影制御部13は、カメラ12A、12B、及び照明装置16A、16Bを制御し、1つの薬包TPに対して11回の撮影(カメラ12Aで6回、カメラ12Bで5回の撮影)を行わせる。
The photographing
また、撮影は暗室の状態で行われ、撮影の際に薬包TPに照射される光は、照明装置16A、又は照明装置16Bからの照明光のみである。したがって、上記のようにして撮影される11枚の撮影画像のうち、リフレクタを介して薬包TPを下方から照明し、カメラ12Aを用いて上方から薬包TPを撮影した画像は、背景が光源の色(白色)になり、各薬剤Tの領域が遮光されて黒くなる。一方、他の10枚の撮影画像は、背景が黒く、各薬剤の領域が薬剤の色になる。
Furthermore, the photographing is performed in a dark room, and the only light that is irradiated onto the medicine package TP during photographing is the illumination light from the
尚、リフレクタを介して薬包TPを下方から照明し、カメラ12Aを用いて上方から薬包TPを撮影した画像であっても、薬剤全体が透明(半透明)な透明薬剤、あるいは一部又は全部が透明なカプセルに粉末又は顆粒状の医薬が充填されたカプセル剤(一部が透明な薬剤)の場合、薬剤の領域から光が透過するため、不透明な薬剤のように真っ黒にならない。
Note that even if the image is obtained by illuminating the drug package TP from below through a reflector and photographing the drug package TP from above using the
図6に戻って、学習データ作成装置1は、薬剤が撮影された撮影画像から薬剤を推論(特に撮影画像内に存在する各薬剤Tの領域を推論)する学習モデルを、機械学習させるための学習データを作成するものである。
Returning to FIG. 6, the learning
したがって、学習データ作成装置1の画像取得部22は、撮影装置10により撮影される11枚の撮影画像のうちの、複数の薬剤Tの領域を認識する場合に使用される撮影画像(即ち、リフレクタを介して薬包TPを下方から照明し、カメラ12Aを用いて上方から薬包TPを撮影した撮影画像)を取得することが好ましい。
Therefore, the
メモリ28は、学習データを記憶する記憶部分であり、例えば、ハードディスク装置、フラッシュメモリ等の不揮発性メモリである。
The
CPU24は、RAM26を作業領域とし、ROM27又はメモリ28に記憶された学習データ作成プログラムを含む各種のプログラムを使用し、プログラムを実行することで本装置の各種の処理を実行する。
The
操作部25は、キーボード、ポインティングデバイス(マウス等)を含み、ユーザの操作により各種の情報や指示を入力する部分である。
The
表示部29は、操作部25での操作に必要な画面を表示し、GUI(Graphical User Interface)を実現する部分として機能し、また、撮影画像等を表示することができる。
The
[学習データ作成装置の実施形態]
図11は、本発明に係る学習データ作成装置の実施形態を示すブロック図である。[Embodiment of learning data creation device]
FIG. 11 is a block diagram showing an embodiment of a learning data creation device according to the present invention.
図11に示す学習データ作成装置1は、図6に示した学習データ作成装置1のハードウェア構成により実行される機能を示す機能ブロック図であり、プロセッサ2とメモリ28とを備えている。
The learning
プロセッサ2は、図6に示した画像取得部22、CPU24、RAM26、ROM27、及びメモリ28等から構成され、以下に示す各種の処理を行う。
The
プロセッサ2は、取得部20、学習用画像生成部30、正解データ生成部32、及び記憶制御部34として機能する。
The
取得部20は、画像取得部22及び第1領域情報取得部23を備えている。
The
画像取得部22は、前述したように撮影装置10から薬剤Tを撮影した撮影画像ITPを取得する(撮影画像の取得処理を行う)。
The
第1領域情報取得部23は、画像取得部22が取得した撮影画像ITP内の薬剤の領域を示す情報(第1領域情報)を取得する。この第1領域情報は、撮影画像を学習モデルの機械学習用の入力画像とした場合、学習モデルが推論する推論結果に対する正解データである。尚、正解データである第1領域情報としては、撮影画像内の薬剤の領域を示す正解画像(例えば、マスク画像)、薬剤の領域を矩形で囲むバウンディングボックス情報、及び薬剤の領域のエッジを示すエッジ情報の少なくとも1つを含むことが好ましい。
The first area
図12は、画像取得部が取得する撮影画像及び第1領域情報取得部が取得する撮影画像内の薬剤の領域を示す第1領域情報の一例を示す図である。 FIG. 12 is a diagram illustrating an example of a photographed image acquired by the image acquisition unit and first area information indicating a drug area in the photographed image acquired by the first area information acquisition unit.
図12(A)に示す撮影画像ITPは、リフレクタを介して薬包TPを下方から照明し、カメラ12Aを用いて上方から薬包TP(図7参照)を撮影した画像である。この薬包TPには、6個の薬剤T1~T6が一包化されている。
The captured image ITP shown in FIG. 12(A) is an image obtained by illuminating the medicine package TP from below through a reflector and photographing the medicine package TP (see FIG. 7) from above using the
図12(A)に示す薬剤T1~T3は、下方からの照明光を遮光する不透明な薬剤であるため、黒く撮影されている。薬剤T4は、透明薬剤であるため、下方からの照明光が透過して白く撮影されている。薬剤T5、T6は、同一種類のカプセル剤であり、下方からの照明光の一部が漏れるため、部分的に僅かに白く撮影されている。 The drugs T1 to T3 shown in FIG. 12(A) are photographed in black because they are opaque drugs that block illumination light from below. Since the drug T4 is a transparent drug, the illumination light from below is transmitted through it and the drug is photographed as white. Drugs T5 and T6 are the same type of capsules, and some of the illumination light from below leaks, so some parts are photographed slightly white.
図12(B)は、撮影画像ITP内の各薬剤T1~T6の領域を示す第1領域情報であり、本例ではマスク画像IMである。 FIG. 12(B) is first area information indicating the area of each drug T1 to T6 in the photographed image ITP, which is a mask image IM in this example.
マスク画像IMは、例えば、撮影画像ITPを表示部29に表示させ、表示部29に表示された撮影画像ITPを見ながら、ユーザがマウス等のポインティングデバイスを使用して各薬剤T1~T6の領域を画素単位で塗り潰すことで作成することができる。例えば、塗り潰した各薬剤T1~T6の領域の画素値を「1」、背景の領域の画素値を「0」とすることで、2値化したマスク画像IMを作成することができる。
The mask image IM is created by, for example, displaying the captured image ITP on the
尚、カプセル状の薬剤T5、T6は、同一種類であるが、インスタンス分離のために、両者の薬剤T5、T6の領域の画素値を異ならせてことが好ましい。例えば、薬剤T5の領域の画素値を「1」、薬剤T6の領域の画素値を「0.5」とすることができる。 Note that although the capsule-shaped medicines T5 and T6 are of the same type, it is preferable that the pixel values of the regions of the two medicines T5 and T6 be made different for instance separation. For example, the pixel value of the drug T5 region can be set to "1", and the pixel value of the drug T6 region can be set to "0.5".
上記の例では、第1領域情報であるマスク画像IMは、撮影画像ITP内の各薬剤T1~T6の領域をユーザがポインティングデバイスを使用して手動で設定することで生成される領域情報であるが、これに限らず、撮影画像内の薬剤の領域を画像処理により自動で抽出して生成したものでもよいし、撮影画像内の薬剤の領域を画像処理により自動で抽出し、かつ手動で調整することで生成されたものでもよい。 In the above example, the mask image IM, which is the first area information, is area information generated by the user manually setting the area of each drug T1 to T6 in the captured image ITP using a pointing device. However, the invention is not limited to this, and it may be generated by automatically extracting the drug area in the captured image by image processing, or it may be generated by automatically extracting the drug area in the captured image by image processing and manually adjusted. It may be generated by
図11に戻って、学習用画像生成部30は、画像取得部22から薬剤を撮影した撮影画像ITPを入力し、入力した撮影画像ITPから薬剤を任意に配置した学習用画像(IA,IB,IC,…)を生成する。即ち、学習用画像生成部30は、撮影画像ITPに基づいて複数の学習用画像(IA,IB,IC,…)を生成する学習用画像生成処理を行う。Returning to FIG. 11, the learning
撮影画像ITPに撮影されている薬剤の任意の配置は、ユーザがポインディンデバイスにより薬剤画像の位置や回転を指示して行うようにしてもよいし、図4を用いて説明したように撮影画像の反転や加算等により行うようにしてもよい。また、乱数を使用してランダムに薬剤画像の位置や回転を決定して、薬剤を任意に配置してもよい。この場合、薬剤画像が重ならないようにする必要がある。 Arbitrary placement of the drug photographed in the photographed image ITP may be performed by the user instructing the position and rotation of the drug image using a pointing device, or as explained using FIG. This may also be done by inverting or adding. Alternatively, the position and rotation of the drug image may be randomly determined using random numbers, and the drug may be arbitrarily placed. In this case, it is necessary to prevent drug images from overlapping.
正解データ生成部32は、第1領域情報取得部23から第1領域情報であるマスク画像IMを入力し、入力したマスク画像IMから複数の学習用画像(IA,IB,IC,…)に対応する複数の正解データ(Ia,Ib,Ic,…)を生成する。即ち、正解データ生成部32は、マスク画像IMに基づいて複数の学習用画像(IA,IB,IC,…)における薬剤の領域を示す第2領域情報を生成し、生成した第2領域情報を複数の学習用画像(IA,IB,IC,…)にそれぞれ対する複数の正解データ(Ia,Ib,Ic,…)とする正解データ生成処理を行う。The correct
尚、複数の学習用画像(IA,IB,IC,…)、及び複数の正解データ(Ia,Ib,Ic,…)の生成は、シミュレーションにより学習データを作成する第1実施形態、及び第2実施形態で説明したように、薬剤を撮影した撮影画像と、その撮影画像内の薬剤の領域を示す第1領域情報(例えば、マスク画像)とを使用し、撮影画像及びマスク画像をそれぞれ同期して反転、平行移動、回転、又は拡縮等を行い、あるいは撮影画像及びマスク画像から切り出した薬剤画像及び薬剤マスク画像を平行移動、回転、又は拡縮して貼り付けることで生成することができる。Note that the generation of multiple learning images (I A , I B , I C ,...) and multiple correct answer data (I a , I b , I c ,...) is the first step in creating learning data through simulation. As described in the embodiment and the second embodiment, the captured image and the Generated by synchronously inverting, translating, rotating, scaling, etc. each mask image, or by translating, rotating, scaling, or pasting the drug image and drug mask image cut out from the captured image and mask image. can do.
記憶制御部34は、学習用画像生成部30により生成される学習用画像(IA,IB,IC,…)と、正解データ生成部32により生成される正解データ(Ia,Ib,Ic,…)とを入力し、それぞれ対応するペア(学習用画像IAと正解データIa,学習用画像IBと正解データIb,学習用画像ICと正解データIc,…、)からなる学習データをメモリ28に記憶させる。The
これにより、メモリ28には、多くの学習データが記憶、蓄積される。尚、図6には図示されていないが、学習用画像生成部30及び正解データ生成部32にそれぞれ入力される撮影画像ITPとマスク画像IMのペアも学習データとしてメモリ28に記憶させることが好ましい。
As a result, a large amount of learning data is stored and accumulated in the
図13は、図12に示した撮影画像及びマスク画像から生成した学習データの一例を示す図である。 FIG. 13 is a diagram showing an example of learning data generated from the captured image and mask image shown in FIG. 12.
図13(A)は、学習用画像IAと正解データ(マスク画像)Iaとのペアからなる学習データを示し、図13(B)は、学習用画像IBとマスク画像Ibとのペアからなる学習データを示す。FIG. 13(A) shows learning data consisting of a pair of learning image IA and correct data (mask image) Ia , and FIG. 13(B) shows a pair of learning image IB and mask image Ib . The training data consisting of pairs is shown.
図13(A)に示す学習用画像IAでは、カプセル状の薬剤T5,T6が線で接触し、薬剤T2,T3,T4が互いに点で接触している。この学習用画像IAに対応するマスク画像Iaは、同一の薬剤である薬剤T5,T6の領域の画素値を異ならせることで、薬剤T5,T6の領域のインスタンス分離を可能にし、かつ線で接している薬剤T5,T6の境界も区別可能にしている。In the learning image IA shown in FIG. 13(A), capsule-shaped medicines T5 and T6 are in contact with each other in a line, and medicines T2, T3, and T4 are in contact with each other in points. The mask image Ia corresponding to this learning image IA makes it possible to separate instances of the regions of drugs T5 and T6 by differentiating the pixel values of the regions of drugs T5 and T6, which are the same drug, and The boundary between drugs T5 and T6, which are in contact with each other, can also be distinguished.
また、マスク画像Iaは、薬剤T2,T3,T4の互いに点で接触している箇所を、背景の画素値と同一とすることで、各薬剤T2,T3,T4が互いに接触しないようにし、各薬剤T2,T3,T4の領域が明確になるようにしている。In addition, in the mask image Ia , the points where the drugs T2, T3, and T4 are in contact with each other are made the same as the pixel values of the background, so that the drugs T2, T3, and T4 do not come into contact with each other. The regions of each drug T2, T3, and T4 are made clear.
また、図13(B)に示す学習用画像IBでは、カプセル状の薬剤T5,T6が線で接触し、薬剤T6と薬剤T3が点で接触している。この学習用画像IBに対応するマスク画像Ibは、同一の薬剤である薬剤T5,T6の領域の画素値を異ならせる(例えば、薬剤T6の領域の画素値を「0.5」とする)ことで、薬剤T5,T6の領域のインスタンス分離を可能にし、かつ線で接している薬剤T5,T6の境界、及び点で接している薬剤T6と薬剤T3の境界を区別可能にしている。In addition, in the learning image IB shown in FIG. 13(B), capsule-shaped medicines T5 and T6 are in contact with each other at a line, and medicine T6 and medicine T3 are in contact at a point. The mask image Ib corresponding to this learning image IB has different pixel values in the regions of drugs T5 and T6, which are the same drug (for example, the pixel value in the region of drug T6 is set to "0.5"). ), it is possible to separate the instances of the regions of drugs T5 and T6, and it is also possible to distinguish the boundary between drugs T5 and T6, which are in contact with each other with a line, and the border between drugs T6 and drug T3, which are in contact with each other at a point.
図13に示した学習データは一例であり、各薬剤T1~T6を示す薬剤画像をそれぞれ任意に平行移動及び回転等を組み合わせて配置し、各薬剤T1~T6の領域を示す薬剤マスク画像を同様に配置することで、多くの学習データを作成することができる。 The learning data shown in FIG. 13 is an example, and the drug images showing each drug T1 to T6 are arranged by arbitrarily combining translation and rotation, etc., and the drug mask image showing the area of each drug T1 to T6 is similarly arranged. You can create a lot of learning data by placing it in
この場合、複数の薬剤画像の一部又は全部が点又は線で接触するように配置して学習データを生成することが好ましい。このような学習データにより機械学習された学習済み学習モデルが、点又は線で接触する薬剤を撮影した撮影画像を入力画像とする場合に、各薬剤の領域を正しく推論するためである。 In this case, it is preferable to generate learning data by arranging some or all of the plurality of drug images so that they are in contact with each other at points or lines. This is because the trained learning model, which has been machine learned using such learning data, can correctly infer the area of each drug when the input image is a photographed image of a drug in contact with a point or a line.
また、図12(A)に示した撮影画像ITPのように透明な薬剤T4が撮影されている場合、下方からの照明光が透過して白く撮影されるが、薬剤T4の位置や角度により照明光の透過状況が変化する。即ち、透明な薬剤T4の薬剤画像は、撮影領域における透明な薬剤T4の位置や角度により輝度分布等が異なる画像になる。 Furthermore, when a transparent drug T4 is photographed as in the photographed image ITP shown in FIG. The light transmission situation changes. That is, the drug image of the transparent drug T4 is an image in which the brightness distribution and the like vary depending on the position and angle of the transparent drug T4 in the imaging region.
したがって、透明な薬剤を含む複数の薬剤を撮影した撮影画像から、薬剤を任意に配置して学習用画像を生成する場合、透明な薬剤は移動させずに透明な薬剤以外の薬剤を任意に配置して学習用画像を生成することが好ましい。 Therefore, when generating a learning image by arbitrarily arranging drugs from captured images of multiple drugs including transparent drugs, drugs other than the transparent drugs are arbitrarily placed without moving the transparent drugs. It is preferable to generate a learning image by
また、本例では、正解データとしてマスク画像を生成するようにしたが、薬剤画像の領域のエッジを示す薬剤画像毎のエッジ情報(エッジ画像)とすることができる。また、薬剤同士が点又は線で接触している場合には、点又は線で接触する箇所を背景色で置換し、薬剤毎のエッジ画像を離間させることが好ましい。 Further, in this example, a mask image is generated as the correct data, but edge information (edge image) for each drug image indicating the edge of the region of the drug image may be used. Furthermore, when the drugs are in contact with each other at points or lines, it is preferable to replace the points or lines where they contact with the background color and separate the edge images for each drug.
更に、薬剤同士が点又は線で接触する場合には、点又は線で接触する箇所のみを示すエッジ画像を、正解データとして生成してもよい。 Furthermore, if the drugs contact each other at a point or line, an edge image showing only the point or line contact may be generated as correct data.
図14は、複数の薬剤の点又は線で接触する箇所のみを示すエッジ画像の一例を示す図である。 FIG. 14 is a diagram showing an example of an edge image showing only points or lines of contact between a plurality of drugs.
図14に示すエッジ画像IEは、複数の薬剤T1~T6のうちの2以上の薬剤が点又は線で接触する箇所E1、E2のみを示す画像であり、図14上で、実線で示した画像である。尚、図14上で、点線で示した領域は、複数の薬剤T1~T6が存在する領域を示す。 The edge image IE shown in FIG. 14 is an image showing only the locations E1 and E2 where two or more of the plurality of drugs T1 to T6 are in contact with each other in points or lines, and is an image shown by a solid line in FIG. It is. Note that in FIG. 14, the area indicated by a dotted line indicates an area where a plurality of drugs T1 to T6 are present.
線で接触する箇所E1のエッジ画像は、カプセル状の薬剤T5とT6とが線で接触している箇所の画像であり、点で接触する箇所E2のエッジ画像は、3つの薬剤T2~T4が互いに点で接触している箇所の画像である。 The edge image of the line contact point E1 is an image of the line contact point between capsule-shaped drugs T5 and T6, and the edge image of the point contact point E2 is an image of the point point contact point E2 where the three drugs T2 to T4 are in contact with each other. This is an image of locations that are in contact with each other at points.
学習用画像における各薬剤画像の配置は既知であるため、複数の薬剤のうちの2以上の薬剤が点又は線で接触する箇所も既知である。したがって、図11に示した正解データ生成部32は、学習用画像生成部30により生成される学習用画像に対して、点又は線で接触する箇所のみを示すエッジ画像(正解データ)を自動的に作成することができる。
Since the arrangement of each drug image in the learning image is known, the locations where two or more of the plurality of drugs are in contact with each other by points or lines are also known. Therefore, the correct
図14に示したエッジ画像IEは、図13(A)に示した学習用画像IAに対応する正解データとすることができる。即ち、図13(A)に示した学習用画像IAと図14に示したエッジ画像IEとのペアからなる学習データとするができる。The edge image IE shown in FIG. 14 can be correct data corresponding to the learning image IA shown in FIG. 13(A). That is, the learning data can be made up of a pair of the learning image IA shown in FIG. 13(A) and the edge image IE shown in FIG. 14.
このような学習データは、点又は線で接触する薬剤を撮影した薬剤画像を入力画像とし、その点又は線で接触する箇所のみのエッジ画像を推論結果として出力する学習モデルを機械学習させる場合に使用することができる。 Such learning data is used when machine learning a learning model that uses a drug image captured by a point or line contact as an input image and outputs an edge image of only the point or line contact point as an inference result. can be used.
また、点又は線で接触する箇所のみのエッジ画像(推論結果)は、例えば、点又は線で接触する複数の薬剤を撮影した薬剤画像と、その点又は線で接触する箇所のみのエッジ画像とを入力画像(マルチチャンネルの入力画像)とし、複数の薬剤の領域を推論する学習モデルに使用することができる。この学習モデルによれば、入力画像に加えて、点又は線で接触する箇所の情報を入力するため、各薬剤の領域をより正確に推論することができる。 In addition, an edge image (inference result) of only a point or line contact can be, for example, a drug image taken of multiple drugs that are in contact with a point or line, and an edge image of only a point or line contact. can be used as an input image (multichannel input image) for a learning model that infers regions of multiple drugs. According to this learning model, in addition to the input image, information on points of contact with points or lines is input, so that the area of each drug can be more accurately inferred.
[機械学習装置]
図15は、本発明に係る機械学習装置の実施形態を示すブロック図である。[Machine learning device]
FIG. 15 is a block diagram showing an embodiment of a machine learning device according to the present invention.
図15に示す機械学習装置50は、学習モデル(学習モデルの一つである畳み込みニューラルネットワーク(CNN:Convolution Neural Network))52と、損失値算出部54と、パラメータ制御部56とから構成される。
The
この機械学習装置50は、図11に示した学習データ作成装置1により作成され、メモリ28に記憶された学習データを使用し、CNN52を機械学習させる。
This
CNN52は、薬剤を撮影した撮影画像を入力画像とするとき、その入力画像に写っている薬剤の領域を推論する部分であり、複数のレイヤ構造を有し、複数の重みパラメータを保持している。重みパラメータは、畳み込み層での畳み込み演算に使用されるカーネルと呼ばれるフィルタのフィルタ係数などである。
The
CNN52は、重みパラメータが初期値から最適値に更新されることで、未学習の学習モデルから学習済みの学習モデルに変化しうる。
The
このCNN52は、入力層52Aと、畳み込み層とプーリング層から構成された複数セットを有する中間層52Bと、出力層52Cとを備え、各層は複数の「ノード」が「エッジ」で結ばれる構造となっている。
This
入力層52Aには、学習対象である学習用画像が入力画像として入力される。学習用画像は、メモリ28に記憶されている学習データ(学習用画像と正解データとのペアからなる学習データ)における学習用画像である。
A learning image, which is a learning target, is input as an input image to the input layer 52A. The learning image is a learning image in the learning data (learning data consisting of a pair of a learning image and correct data) stored in the
中間層52Bは、畳み込み層とプーリング層とを1セットとする複数セットを有し、入力層52Aから入力した画像から特徴を抽出する部分である。畳み込み層は、前の層で近くにあるノードにフィルタ処理し(フィルタを使用した畳み込み演算を行い)、「特徴マップ」を取得する。プーリング層は、畳み込み層から出力された特徴マップを縮小して新たな特徴マップとする。「畳み込み層」は、画像からのエッジ抽出等の特徴抽出の役割を担い、「プーリング層」は抽出された特徴が、平行移動などによる影響を受けないようにロバスト性を与える役割を担う。
The
尚、中間層52Bには、畳み込み層とプーリング層とを1セットとする場合に限らず、畳み込み層が連続する場合や活性化関数による活性化プロセス、正規化層も含まれ得る。
Note that the
出力層52Cは、中間層52Bにより抽出された特徴を示す特徴マップを出力する部分である。また、出力層52Cは、学習済みCNN52では、例えば、入力画像に写っている薬剤領域等をピクセル単位、もしくはいくつかのピクセルを一塊にした単位で領域分類(セグメンテーション)した推論結果を出力する。
The output layer 52C is a part that outputs a feature map showing the features extracted by the
学習前のCNN52の各畳み込み層に適用されるフィルタの係数やオフセット値は、任意の初期値がセットされる。
Any initial values are set for the filter coefficients and offset values applied to each convolutional layer of the
学習制御部として機能する損失値算出部54及びパラメータ制御部56のうちの損失値算出部54は、CNN52の出力層52Cから出力される特徴マップと、入力画像(学習用画像)に対する正解データであるマスク画像(メモリ28から学習湯尾画像に対応して読み出されるマスク画像)とを比較し、両者間の誤差(損失関数の値である損失値)を計算する。損失値の計算方法は、例えばソフトマックスクロスエントロピー、シグモイドなどが考えられる。
Of the loss value calculation unit 54 and
パラメータ制御部56は、損失値算出部54により算出された損失値を元に、誤差逆伝播法によりCNN52の重みパラメータを調整する。誤差逆伝播法では、誤差を最終レイヤから順に逆伝播させ、各レイヤにおいて確率的勾配降下法を行い、誤差が収束するまでパラメータの更新を繰り返す。
The
この重みパラメータの調整処理を繰り返し行い、CNN52の出力と正解データであるマスク画像との差が小さくなるまで繰り返し学習を行う。
This weight parameter adjustment process is repeated, and learning is performed repeatedly until the difference between the output of the
機械学習装置50は、メモリ28に記憶された学習データを使用した機械学習を繰り返すことで、CNN52が学習済みモデルとなる。学習済みのCNN52は、未知の入力画像(薬剤を撮影した撮影画像)を入力すると、撮影画像内の薬剤の領域を示すマスク画像等の推論結果を出力する。
The
尚、CNN52としては、R-CNN(Regions with Convolutional Neural Networks)を適用することができる。R-CNNでは、撮影画像ITP内において、大きさを変えたバウンディングボックスをスライドさせ、薬剤が入るバウンディングボックスの領域を検出する。そして、バウンディングボックスの中の画像部分だけを評価(CNN特徴量を抽出)することで、薬剤のエッジを検出する。また、R-CNNに代えて、Fast R-CNN、Faster R-CNN、Mask R-CNN等を使用することができる。
Note that as the
このようにして構成される学習済モデルの推論結果は、例えば、複数の薬剤が一包化された薬包を撮影した撮影画像から、各薬剤の画像を切り出す場合に使用することができる。尚、切り出された各薬剤の画像は、薬包に入っている各薬剤の監査・鑑別を行う場合に使用される。 The inference results of the trained model configured in this manner can be used, for example, when cutting out images of each drug from a photographed image of a medicine package containing a plurality of drugs. Note that the cut out images of each drug are used when inspecting and differentiating each drug contained in a drug package.
ところで、メモリ28には、前述したように薬剤を撮影した撮影画像とその撮影画像内の薬剤の領域を示す正解データとに基づいて、シミュレーションにより作成した多くの学習データが記憶されるが、撮影画像は、自薬局が取り扱っている薬剤を撮影した画像であることが好ましい。自薬局が取り扱っている薬剤を撮影した撮影画像を使用して学習データを作成し、その学習データを使用して学習モデルを構成することで、自薬局で取り扱っている薬剤の監査・鑑別を行う場合に、その学習モデルを有効に使用できるからである。
By the way, as described above, the
[学習データ作成方法]
図16は、本発明に係る学習データ作成方法の実施形態を示すフローチャートである。[Learning data creation method]
FIG. 16 is a flowchart showing an embodiment of the learning data creation method according to the present invention.
図16に示す各ステップの処理は、例えば、図11に示した学習データ作成装置1のプロセッサ2により行われる。
The processing of each step shown in FIG. 16 is performed, for example, by the
図16において、画像取得部22は、撮影装置10から薬剤を撮影した撮影画像ITP(例えば、図12(A)に示す撮影画像ITP)を取得する(ステップS10)。尚、図12(A)に示した撮影画像ITPは、リフレクタを介して薬包を下から照明し、薬包の上方から薬包を撮影した画像であるが、薬剤を撮影した撮影画像は上記のようにして撮影したものに限らない。また、撮影される薬剤は、薬包に入っていないものでもよいし、薬剤の個数は1個でもよい。
In FIG. 16, the
また、第1領域情報取得部23は、画像取得部22が取得する撮影画像内の薬剤の領域を示す第1領域情報としてマスク画像IM(例えば、図12(B)に示すマスク画像IM)を取得する(ステップS12)。尚、マスク画像IMは、撮影画像ITPに基づいて手動又は自動で生成され、メモリ28等に記憶されたものである。
The first area
続いて、学習用画像生成部30は、ステップS10で取得する撮影画像ITPから薬剤T1~T6を任意に配置した学習用画像を生成する(ステップS14)。学習用画像の生成は、各薬剤を示す薬剤画像を平行移動、反転、回転、又は拡縮させる画像処理により行うことができる。
Subsequently, the learning
また、正解データ生成部32は、ステップS12で取得したマスク画像IMに基づいて、ステップS14で生成された学習用画像に対応する正解データ(マスク画像)を生成する(ステップS16)。即ち、ステップS16では、マスク画像IMにおける各薬剤の領域を学習用画像における各薬剤と同様に配置し、その配置した各薬剤の領域を示す第2領域情報を生成し、生成した第2領域情報を学習用画像に対する正解データ(マスク画像)とする画像処理を行う。
Further, the correct
記憶制御部34は、ステップS14で生成した学習用画像とステップS16で生成したマスク画像とのペアを学習データとしてメモリ28に記憶させる(ステップS18)。図13(A)及び図13(B)は、上記のようにして生成され、メモリ28に記憶される学習用画像とマスク画像のペアからなる学習データの一例を示す。
The
続いて、プロセッサ2は、学習データの生成を終了するか否かを判別する(ステップS20)。例えば、ユーザからの学習データの生成終了の指示入力があった場合や、1つの撮影画像ITPとマスク画像のペアから、予め設定された規定数の学習データの作成が終了した場合を学習データの生成終了と判別することができる。
Subsequently, the
学習データの生成を終了していないと判別されると(「No」の場合)、ステップS14、ステップS16に戻り、ステップS14~ステップS20により次の学習データを作成する。 If it is determined that the generation of learning data has not been completed (in the case of "No"), the process returns to step S14 and step S16, and the next learning data is created in steps S14 to S20.
学習データの生成を終了すると判別されると(「Yes」の場合)、ステップS10、ステップS12で取得した撮影画像ITP,マスク画像IMに基づく学習データの作成を終了させる。 If it is determined that the generation of the learning data is to be completed (in the case of "Yes"), the creation of the learning data based on the photographed image ITP and the mask image IM acquired in steps S10 and S12 is terminated.
尚、ステップS10、ステップS12において、別の撮影画像ITP,マスク画像IMが取得される場合には、その撮影画像ITP,マスク画像IMに基づく複数の学習データの作成が行われることは言うまでもない。 It goes without saying that when another captured image ITP and mask image IM are acquired in steps S10 and S12, a plurality of learning data are created based on the captured image ITP and mask image IM.
[その他]
本発明に係る学習データ作成装置の、例えば、CPU24等の各種の処理を実行する処理部(processing unit)のハードウェア的な構造は、次に示すような各種のプロセッサ(processor)である。各種のプロセッサには、ソフトウェア(プログラム)を実行して各種の処理部として機能する汎用的なプロセッサであるCPU(Central Processing Unit)、FPGA(Field Programmable Gate Array)などの製造後に回路構成を変更可能なプロセッサであるプログラマブルロジックデバイス(Programmable Logic Device:PLD)、ASIC(Application Specific Integrated Circuit)などの特定の処理を実行させるために専用に設計された回路構成を有するプロセッサである専用電気回路などが含まれる。[others]
The hardware structure of a processing unit such as the
1つの処理部は、これら各種のプロセッサのうちの1つで構成されていてもよいし、同種または異種の2つ以上のプロセッサ(例えば、複数のFPGA、あるいはCPUとFPGAの組み合わせ)で構成されてもよい。また、複数の処理部を1つのプロセッサで構成してもよい。複数の処理部を1つのプロセッサで構成する例としては、第1に、クライアントやサーバなどのコンピュータに代表されるように、1つ以上のCPUとソフトウェアの組合せで1つのプロセッサを構成し、このプロセッサが複数の処理部として機能する形態がある。第2に、システムオンチップ(System On Chip:SoC)などに代表されるように、複数の処理部を含むシステム全体の機能を1つのIC(Integrated Circuit)チップで実現するプロセッサを使用する形態がある。このように、各種の処理部は、ハードウェア的な構造として、上記各種のプロセッサを1つ以上用いて構成される。 One processing unit may be composed of one of these various types of processors, or may be composed of two or more processors of the same type or different types (for example, multiple FPGAs, or a combination of a CPU and FPGA). You can. Further, the plurality of processing units may be configured with one processor. As an example of configuring multiple processing units with one processor, first, one processor is configured with a combination of one or more CPUs and software, as typified by computers such as clients and servers. There is a form in which a processor functions as multiple processing units. Second, there are processors that use a single IC (Integrated Circuit) chip to implement the functions of the entire system, including multiple processing units, as typified by System On Chip (SoC). be. In this way, various processing units are configured using one or more of the various processors described above as a hardware structure.
これらの各種のプロセッサのハードウェア的な構造は、より具体的には、半導体素子などの回路素子を組み合わせた電気回路(circuitry)である。 More specifically, the hardware structure of these various processors is an electric circuit (circuitry) that is a combination of circuit elements such as semiconductor elements.
また、本発明は、コンピュータにインストールされることにより、本発明に係る学習データ作成装置として各種の機能を実現させる学習データ作成プログラム、及びこの学習データ作成プログラムが記録された記録媒体を含む。 Further, the present invention includes a learning data creation program that is installed on a computer to realize various functions as the learning data creation device according to the present invention, and a recording medium on which this learning data creation program is recorded.
更に、本発明は上述した実施形態に限定されず、本発明の精神を逸脱しない範囲で種々の変形が可能であることは言うまでもない。 Furthermore, it goes without saying that the present invention is not limited to the embodiments described above, and that various modifications can be made without departing from the spirit of the present invention.
1 学習データ作成装置
2 プロセッサ
10 撮影装置
12A、12B カメラ
13 撮影制御部
14 ステージ
16A、16B 照明装置
16A1~16A4,16B1~16B4 発光部
20 取得部
22 画像取得部
23 第1領域情報取得部
24 CPU
25 操作部
26 RAM
27 ROM
28 メモリ
29 表示部
30 学習用画像生成部
32 正解データ生成部
34 記憶制御部
50 機械学習装置
52 学習モデル(CNN)
52A 入力層
52B 中間層
52C 出力層
54 損失値算出部
56 パラメータ制御部
IA、IB、IC 学習用画像
IE エッジ画像
IM、Ia、Ib、Ic マスク画像(正解データ)
ITP 撮影画像
Itpl テンプレート画像
S10~S20 ステップ
T、T1~T6 薬剤
TP 薬包1 Learning
25
27 ROM
28
ITP Photographed image I tpl template image S10-S20 Step T, T1-T6 Drug TP Medicine package
Claims (18)
前記プロセッサは、
薬剤が撮影された撮影画像を取得する取得処理と、
前記取得した前記撮影画像から前記薬剤を任意に配置した学習用画像を生成する学習用画像生成処理と、
前記生成した学習用画像における前記薬剤の領域に対応する第2領域情報を生成し、前記生成した前記第2領域情報を前記学習用画像に対する正解データとする正解データ生成処理と、
前記生成した学習用画像と前記正解データとのペアを、学習データとして前記メモリに記憶させる記憶制御と、を行い、
前記学習用画像生成処理は、複数の薬剤を含む前記学習用画像を生成する際に、前記複数の薬剤の全部又は一部が点又は線で接触する前記学習用画像を生成し、
前記正解データは、前記複数の薬剤の前記点又は線で接触する箇所のみを示すエッジ画像を含む、
学習データ作成装置。 A learning data creation device comprising a processor and a memory, the processor creating learning data for machine learning,
The processor includes:
an acquisition process for acquiring a photographed image of the drug;
a learning image generation process that generates a learning image in which the drug is arbitrarily arranged from the acquired photographed image;
Correct data generation processing that generates second area information corresponding to the area of the drug in the generated learning image, and sets the generated second area information as correct data for the learning image;
performing storage control to store a pair of the generated learning image and the correct answer data in the memory as learning data;
When generating the learning image including a plurality of drugs, the learning image generation process generates the learning image in which all or part of the plurality of drugs are in contact with a point or a line,
The correct answer data includes an edge image showing only the points or lines of the plurality of drugs that are in contact with each other.
Learning data creation device.
前記プロセッサは、
薬剤が撮影された撮影画像を取得する取得処理と、
前記取得した前記撮影画像から前記薬剤を任意に配置した学習用画像を生成する学習用画像生成処理と、
前記生成した学習用画像における前記薬剤の領域に対応する第2領域情報を生成し、前記生成した前記第2領域情報を前記学習用画像に対する正解データとする正解データ生成処理と、
前記生成した学習用画像と前記正解データとのペアを、学習データとして前記メモリに記憶させる記憶制御と、を行い、
前記学習用画像生成処理は、複数の薬剤を含む前記学習用画像を生成する際に、前記複数の薬剤の全部又は一部が点又は線で接触する前記学習用画像を生成し、
前記正解データは、前記薬剤の領域に対応するマスク画像又は前記薬剤の領域のエッジを示すエッジ画像であり、前記点又は線で接触する箇所は背景色に置換される、
学習データ作成装置。 A learning data creation device comprising a processor and a memory, the processor creating learning data for machine learning,
The processor includes:
an acquisition process for acquiring a photographed image of the drug;
a learning image generation process that generates a learning image in which the drug is arbitrarily arranged from the acquired photographed image;
Correct data generation processing that generates second area information corresponding to the area of the drug in the generated learning image, and sets the generated second area information as correct data for the learning image;
performing storage control to store a pair of the generated learning image and the correct answer data in the memory as learning data;
When generating the learning image including a plurality of drugs, the learning image generation process generates the learning image in which all or part of the plurality of drugs are in contact with a point or a line,
The correct answer data is a mask image corresponding to the drug area or an edge image showing an edge of the drug area, and the points or lines that touch are replaced with a background color.
Learning data creation device.
前記プロセッサは、
薬剤が撮影された撮影画像を取得する取得処理と、
前記取得した前記撮影画像から前記薬剤を任意に配置した学習用画像を生成する学習用画像生成処理と、
前記生成した学習用画像における前記薬剤の領域に対応する第2領域情報を生成し、前記生成した前記第2領域情報を前記学習用画像に対する正解データとする正解データ生成処理と、
前記生成した学習用画像と前記正解データとのペアを、学習データとして前記メモリに記憶させる記憶制御と、を行い、
前記学習用画像生成処理は、複数の薬剤を含む前記学習用画像を生成する際に、前記複数の薬剤の全部又は一部が点又は線で接触する前記学習用画像を生成し、
前記正解データは、前記薬剤の領域に対応するマスク画像であり、前記点又は線で接触する前記複数の薬剤に対応する前記マスク画像は画素値が異なる、
学習データ作成装置。 A learning data creation device comprising a processor and a memory, the processor creating learning data for machine learning,
The processor includes:
an acquisition process for acquiring a photographed image of the drug;
a learning image generation process that generates a learning image in which the drug is arbitrarily arranged from the acquired photographed image;
Correct data generation processing that generates second area information corresponding to the area of the drug in the generated learning image, and sets the generated second area information as correct data for the learning image;
performing storage control to store a pair of the generated learning image and the correct answer data in the memory as learning data;
When generating the learning image including a plurality of drugs, the learning image generation process generates the learning image in which all or part of the plurality of drugs are in contact with a point or a line,
The correct answer data is a mask image corresponding to the region of the drug, and the mask images corresponding to the plurality of drugs that are in contact with the points or lines have different pixel values.
Learning data creation device.
前記プロセッサは、
薬剤が撮影された撮影画像を取得する取得処理と、
前記取得した前記撮影画像から前記薬剤を任意に配置した学習用画像を生成する学習用画像生成処理と、
前記生成した学習用画像における前記薬剤の領域に対応する第2領域情報を生成し、前記生成した前記第2領域情報を前記学習用画像に対する正解データとする正解データ生成処理と、
前記生成した学習用画像と前記正解データとのペアを、学習データとして前記メモリに記憶させる記憶制御と、を行い、
前記薬剤は、少なくとも一部が透明な薬剤であり、
前記プロセッサによる前記学習用画像生成処理は、複数の薬剤を含む前記学習用画像を生成する際に、前記透明な薬剤以外の薬剤を任意に配置する、
学習データ作成装置。 A learning data creation device comprising a processor and a memory, the processor creating learning data for machine learning,
The processor includes:
an acquisition process for acquiring a photographed image of the drug;
a learning image generation process that generates a learning image in which the drug is arbitrarily arranged from the acquired photographed image;
Correct data generation processing that generates second area information corresponding to the area of the drug in the generated learning image, and sets the generated second area information as correct data for the learning image;
performing storage control to store a pair of the generated learning image and the correct answer data in the memory as learning data;
The drug is at least partially transparent,
The learning image generation process by the processor includes arbitrarily arranging drugs other than the transparent drug when generating the learning image including a plurality of drugs.
Learning data creation device.
前記正解データ生成処理は、前記取得した前記第1領域情報に基づいて前記第2領域情報を生成する、
請求項1から4のいずれか1項に記載の学習データ作成装置。 The acquisition process of the processor acquires first area information corresponding to a drug area in the acquired captured image;
The correct data generation process generates the second area information based on the acquired first area information.
The learning data creation device according to any one of claims 1 to 4 .
請求項5に記載の学習データ作成装置。 The acquisition processing of the processor acquires the photographed images in which a plurality of drugs are photographed, or the plurality of photographed images in which drugs are photographed, and acquires the plurality of first region information corresponding to the regions of the plurality of drugs. get,
The learning data creation device according to claim 5 .
請求項5又は6に記載の学習データ作成装置。 The first region information may be region information that manually sets the drug region in the captured image, region information that automatically extracts the drug region in the captured image by image processing, or region information that indicates the drug region in the captured image. The area is automatically extracted by image processing and the area information is manually adjusted.
The learning data creation device according to claim 5 or 6 .
前記正解データ生成処理は、前記第1領域情報を前記撮影画像に対応して平行移動、反転、回転、又は拡縮させて前記正解データを生成する、
請求項5又は6に記載の学習データ作成装置。 The learning image generation process generates the learning image by translating, inverting, rotating, or scaling the photographed image,
The correct data generation process generates the correct data by translating, inverting, rotating, or scaling the first region information in accordance with the photographed image.
The learning data creation device according to claim 5 or 6 .
前記正解データ生成処理は、前記2以上の画像の各々に対応する前記第1領域情報を前記撮影画像に対応して平行移動、反転、回転、又は拡縮させて前記正解データを生成する、
請求項5又は6に記載の学習データ作成装置。 The learning image generation process generates the learning image by combining two or more images obtained by translating, inverting, rotating, or scaling the photographed image,
The correct data generation process generates the correct data by translating, inverting, rotating, or scaling the first region information corresponding to each of the two or more images in accordance with the photographed image.
The learning data creation device according to claim 5 or 6 .
前記学習用画像生成処理は、前記取得した薬剤画像を平行移動、反転、回転、又は拡縮させて前記学習用画像を生成し、
前記正解データ生成処理は、前記第1領域情報を前記薬剤画像に対応して平行移動、反転、回転、又は拡縮させて前記正解データを生成する、
請求項5又は6に記載の学習データ作成装置。 The processor includes a drug image acquisition process of acquiring a drug image in which the drug region is cut out from the photographed image based on the acquired first region information,
The learning image generation process involves translating, inverting, rotating, or scaling the acquired drug image to generate the learning image;
The correct data generation process generates the correct data by translating, inverting, rotating, or scaling the first region information in accordance with the drug image.
The learning data creation device according to claim 5 or 6 .
前記学習用画像生成処理は、前記取得した薬剤画像を平行移動、反転、回転、又は拡縮させた2以上の画像を合成して前記学習用画像を生成し、
前記正解データ生成処理は、前記第1領域情報を前記薬剤画像に対応して平行移動、反転、回転、又は拡縮させた2以上の前記第2領域情報を合成して前記正解データを生成する、
請求項5、6及び10のいずれか1項に記載の学習データ作成装置。 The processor includes a drug image acquisition process of acquiring a drug image in which the drug region is cut out from the photographed image based on the acquired first region information,
The learning image generation process generates the learning image by combining two or more images obtained by translating, inverting, rotating, or scaling the obtained drug image,
The correct data generation process generates the correct data by combining two or more pieces of second area information obtained by translating, inverting, rotating, or scaling the first area information corresponding to the drug image.
The learning data creation device according to any one of claims 5, 6, and 10 .
請求項1から11のいずれか1項に記載の学習データ作成装置。 The photographed image is an image of a drug handled by the own pharmacy;
The learning data creation device according to any one of claims 1 to 11 .
薬剤が撮影された撮影画像を取得するステップと、
前記取得した前記撮影画像から前記薬剤を任意に配置した学習用画像を生成するステップと、
前記生成した学習用画像における前記薬剤の領域に対応する第2領域情報を生成し、前記生成した前記第2領域情報を前記学習用画像に対する正解データとするステップと、
前記生成した学習用画像と前記正解データとのペアを、学習データとしてメモリに記憶させるステップと、を含み、
前記学習用画像を生成するステップは、複数の薬剤を配置する際に、前記複数の薬剤の全部又は一部を点又は線で接触させ、
前記正解データは、前記複数の薬剤の前記点又は線で接触する箇所のみを示すエッジ画像を含む、
学習データ作成方法。 A learning data creation method in which a processor creates learning data for machine learning by processing each of the following steps,
a step of acquiring a photographed image in which the drug is photographed;
generating a learning image in which the drug is arbitrarily arranged from the acquired photographed image;
generating second area information corresponding to the area of the drug in the generated learning image, and using the generated second area information as correct data for the learning image;
a step of storing the pair of the generated learning image and the correct data in a memory as learning data;
In the step of generating the learning image, when arranging the plurality of drugs, all or part of the plurality of drugs are brought into contact with a point or a line,
The correct answer data includes an edge image showing only the points or lines of the plurality of drugs that are in contact with each other.
How to create learning data.
薬剤が撮影された撮影画像を取得するステップと、
前記取得した前記撮影画像から前記薬剤を任意に配置した学習用画像を生成するステップと、
前記生成した学習用画像における前記薬剤の領域に対応する第2領域情報を生成し、前記生成した前記第2領域情報を前記学習用画像に対する正解データとするステップと、
前記生成した学習用画像と前記正解データとのペアを、学習データとしてメモリに記憶させるステップと、を含み、
前記学習用画像を生成するステップは、複数の薬剤を配置する際に、前記複数の薬剤の全部又は一部を点又は線で接触させ、
前記正解データは、前記薬剤の領域に対応するマスク画像又は前記薬剤の領域のエッジを示すエッジ画像であり、前記点又は線で接触する箇所は背景色に置換される、
学習データ作成方法。 A learning data creation method in which a processor creates learning data for machine learning by processing each of the following steps,
a step of acquiring a photographed image in which the drug is photographed;
generating a learning image in which the drug is arbitrarily arranged from the acquired photographed image;
generating second area information corresponding to the area of the drug in the generated learning image, and using the generated second area information as correct data for the learning image;
a step of storing the pair of the generated learning image and the correct data in a memory as learning data;
In the step of generating the learning image, when arranging the plurality of drugs, all or part of the plurality of drugs are brought into contact with a point or a line,
The correct answer data is a mask image corresponding to the drug area or an edge image showing an edge of the drug area, and the points or lines that touch are replaced with a background color.
How to create learning data.
薬剤が撮影された撮影画像を取得するステップと、
前記取得した前記撮影画像から前記薬剤を任意に配置した学習用画像を生成するステップと、
前記生成した学習用画像における前記薬剤の領域に対応する第2領域情報を生成し、前記生成した前記第2領域情報を前記学習用画像に対する正解データとするステップと、
前記生成した学習用画像と前記正解データとのペアを、学習データとしてメモリに記憶させるステップと、を含み、
前記学習用画像を生成するステップは、複数の薬剤を配置する際に、前記複数の薬剤の全部又は一部を点又は線で接触させ、
前記正解データは、前記薬剤の領域に対応するマスク画像であり、前記点又は線で接触する前記複数の薬剤に対応する前記マスク画像は画素値が異なる、
学習データ作成方法。 A learning data creation method in which a processor creates learning data for machine learning by processing each of the following steps,
a step of acquiring a photographed image in which the drug is photographed;
generating a learning image in which the drug is arbitrarily arranged from the acquired photographed image;
generating second area information corresponding to the area of the drug in the generated learning image, and using the generated second area information as correct data for the learning image;
a step of storing the pair of the generated learning image and the correct data in a memory as learning data;
In the step of generating the learning image, when arranging the plurality of drugs, all or part of the plurality of drugs are brought into contact with a point or a line,
The correct answer data is a mask image corresponding to the region of the drug, and the mask images corresponding to the plurality of drugs that are in contact with the points or lines have different pixel values.
How to create learning data.
薬剤が撮影された撮影画像を取得するステップと、
前記取得した前記撮影画像から前記薬剤を任意に配置した学習用画像を生成するステップと、
前記生成した学習用画像における前記薬剤の領域に対応する第2領域情報を生成し、前記生成した前記第2領域情報を前記学習用画像に対する正解データとするステップと、
前記生成した学習用画像と前記正解データとのペアを、学習データとしてメモリに記憶させるステップと、を含み、
前記学習用画像を生成するステップは、複数の薬剤を配置する際に、前記複数の薬剤の全部又は一部を点又は線で接触させ、
前記薬剤は、少なくとも一部が透明な薬剤であり、
前記学習用画像を生成するステップは、複数の薬剤を含む学習用画像を生成する際に、前記透明な薬剤以外の薬剤を任意に配置する、
学習データ作成方法。 A learning data creation method in which a processor creates learning data for machine learning by processing each of the following steps,
a step of acquiring a photographed image in which the drug is photographed;
generating a learning image in which the drug is arbitrarily arranged from the acquired photographed image;
generating second area information corresponding to the area of the drug in the generated learning image, and using the generated second area information as correct data for the learning image;
a step of storing the pair of the generated learning image and the correct data in a memory as learning data;
In the step of generating the learning image, when arranging the plurality of drugs, all or part of the plurality of drugs are brought into contact with a point or a line,
The drug is at least partially transparent,
The step of generating the learning image includes arbitrarily arranging drugs other than the transparent drug when generating the learning image including a plurality of drugs.
How to create learning data.
前記取得した前記撮影画像から前記薬剤を任意に配置した学習用画像を生成する機能であって、複数の薬剤を含む前記学習用画像を生成する際に、前記複数の薬剤の全部又は一部が点又は線で接触する前記学習用画像を生成する機能と、
前記生成した学習用画像における前記薬剤の領域に対応する第2領域情報を生成し、前記生成した前記第2領域情報を前記学習用画像に対する正解データとする機能と、
前記生成した学習用画像と前記正解データとのペアを、学習データとしてメモリに記憶させる機能と、をコンピュータにより実現させ、
前記正解データは、前記複数の薬剤の前記点又は線で接触する箇所のみを示すエッジ画像を含む、
学習データ作成プログラム。 A function to obtain images of drugs,
The function is to generate a learning image in which the drugs are arbitrarily arranged from the acquired photographic image, and when generating the learning image including a plurality of drugs, all or a part of the plurality of drugs are A function of generating the learning image that contacts with a point or a line ;
a function of generating second area information corresponding to the area of the drug in the generated learning image, and using the generated second area information as correct data for the learning image;
A computer realizes a function of storing a pair of the generated learning image and the correct answer data in a memory as learning data ,
The correct answer data includes an edge image showing only the points or lines of the plurality of drugs that are in contact with each other.
Learning data creation program.
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020044138 | 2020-03-13 | ||
| JP2020044138 | 2020-03-13 | ||
| PCT/JP2021/008791 WO2021182345A1 (en) | 2020-03-13 | 2021-03-05 | Training data creating device, method, program, training data, and machine learning device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPWO2021182345A1 JPWO2021182345A1 (en) | 2021-09-16 |
| JP7375161B2 true JP7375161B2 (en) | 2023-11-07 |
Family
ID=77671685
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2022507151A Active JP7375161B2 (en) | 2020-03-13 | 2021-03-05 | Learning data creation device, method, program, and recording medium |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP7375161B2 (en) |
| WO (1) | WO2021182345A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPWO2023234061A1 (en) * | 2022-05-31 | 2023-12-07 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2018027242A (en) | 2016-08-18 | 2018-02-22 | 安川情報システム株式会社 | Tablet detection method, tablet detection device, and table detection program |
| US20180260665A1 (en) | 2017-03-07 | 2018-09-13 | Board Of Trustees Of Michigan State University | Deep learning system for recognizing pills in images |
| JP2019125203A (en) | 2018-01-17 | 2019-07-25 | 株式会社東芝 | Target recognition device, target recognition method, program and convolution neural network |
| JP2019207535A (en) | 2018-05-29 | 2019-12-05 | キヤノン株式会社 | Information processing apparatus, information processing method, and program |
| JP2019215647A (en) | 2018-06-12 | 2019-12-19 | キヤノンマーケティングジャパン株式会社 | Information processing device, control method of the same and program |
-
2021
- 2021-03-05 JP JP2022507151A patent/JP7375161B2/en active Active
- 2021-03-05 WO PCT/JP2021/008791 patent/WO2021182345A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2018027242A (en) | 2016-08-18 | 2018-02-22 | 安川情報システム株式会社 | Tablet detection method, tablet detection device, and table detection program |
| US20180260665A1 (en) | 2017-03-07 | 2018-09-13 | Board Of Trustees Of Michigan State University | Deep learning system for recognizing pills in images |
| JP2019125203A (en) | 2018-01-17 | 2019-07-25 | 株式会社東芝 | Target recognition device, target recognition method, program and convolution neural network |
| JP2019207535A (en) | 2018-05-29 | 2019-12-05 | キヤノン株式会社 | Information processing apparatus, information processing method, and program |
| JP2019215647A (en) | 2018-06-12 | 2019-12-19 | キヤノンマーケティングジャパン株式会社 | Information processing device, control method of the same and program |
Also Published As
| Publication number | Publication date |
|---|---|
| JPWO2021182345A1 (en) | 2021-09-16 |
| WO2021182345A1 (en) | 2021-09-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1267309B1 (en) | 3D Computer Modelling Apparatus | |
| CN106797458B (en) | Virtual alteration of real objects | |
| US11580634B2 (en) | System and method for automated surface assessment | |
| DE102018121282A1 (en) | DIFFERENTIAL RENDERING PIPELINE FOR INVERSE GRAPHICS | |
| JP7083037B2 (en) | Learning device and learning method | |
| WO2023277906A1 (en) | Synthetic images for machine learning | |
| JP7492240B2 (en) | Analytical device and analytical method | |
| WO2019039015A1 (en) | Medicine inspection assistance device, image processing device, image processing method, and program | |
| CN115937059A (en) | Part inspection system with generatively trained models | |
| JPWO2019039302A1 (en) | Drug inspection support device, image processing device, image processing method, and program | |
| JP7125510B2 (en) | Drug identification device, drug identification method, and drug identification program | |
| JP7375161B2 (en) | Learning data creation device, method, program, and recording medium | |
| CN112614138B (en) | Image processing device, method, system, storage medium and computer program product | |
| JP2001216518A (en) | Method and device for matching and recording medium | |
| CN111612681A (en) | Data acquisition method, watermark identification method, watermark removal method and device | |
| JP7531578B2 (en) | Learning data creation device, method, program, and recording medium | |
| JP7437259B2 (en) | Image processing device, drug identification device, image processing method, and drug identification method | |
| JP7338030B2 (en) | Object recognition device, method and program | |
| WO2020162263A1 (en) | Medical drug verification device, medical drug verification method, and medical drug verification system | |
| CN112633038A (en) | Data processing method, data processing device, computer equipment and computer readable storage medium | |
| JP7375049B2 (en) | Image processing device and method | |
| CN112634397A (en) | Data processing method, data processing device, computer equipment and computer readable storage medium | |
| US12423959B2 (en) | Method of data augmentation and non-transitory computer readable media | |
| CN114972560B (en) | Image drawing method, system, electronic device and medium | |
| EP4657377A1 (en) | Method and systems for remote press approval |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220720 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230719 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230912 |
|
| 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: 20231013 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20231025 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7375161 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313113 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |