JP7170602B2 - LEARNING DATA CREATION DEVICE AND METHOD, AND MACHINE LEARNING DEVICE AND METHOD - Google Patents

LEARNING DATA CREATION DEVICE AND METHOD, AND MACHINE LEARNING DEVICE AND METHOD Download PDF

Info

Publication number
JP7170602B2
JP7170602B2 JP2019154362A JP2019154362A JP7170602B2 JP 7170602 B2 JP7170602 B2 JP 7170602B2 JP 2019154362 A JP2019154362 A JP 2019154362A JP 2019154362 A JP2019154362 A JP 2019154362A JP 7170602 B2 JP7170602 B2 JP 7170602B2
Authority
JP
Japan
Prior art keywords
image
learning
drug
unit
images
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
JP2019154362A
Other languages
Japanese (ja)
Other versions
JP2021033737A (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 Toyama Chemical Co Ltd
Original Assignee
Fujifilm Toyama Chemical 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 Toyama Chemical Co Ltd filed Critical Fujifilm Toyama Chemical Co Ltd
Priority to JP2019154362A priority Critical patent/JP7170602B2/en
Publication of JP2021033737A publication Critical patent/JP2021033737A/en
Application granted granted Critical
Publication of JP7170602B2 publication Critical patent/JP7170602B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は学習データ作成装置及び方法、並びに機械学習装置及び方法に係り、特に学習器を機械学習させる学習データを効率よく作成する技術に関する。 The present invention relates to a learning data creation device and method, and a machine learning device and method, and more particularly to a technology for efficiently creating learning data for machine learning of a learner.

従来、学習データを作成する画像出力装置として、特許文献1に記載のものがある。 2. Description of the Related Art Conventionally, as an image output device for creating learning data, there is one disclosed in Japanese Unexamined Patent Application Publication No. 2002-200013.

特許文献1に記載の画像出力装置は、対象物を第1の方向から撮影した第1の画像と、対象物を第2の方向から撮影した第2の画像とを取得し、これらの第1の画像と第2の画像とを所定の位置関係で一の画像内に含む合成画像を生成する。 The image output device described in Patent Document 1 acquires a first image of an object photographed from a first direction and a second image of an object photographed from a second direction, and a second image in one image in a predetermined positional relationship.

特許文献1に記載の画像出力装置は、上記のようにして生成した合成画像を、機械学習可能な又は学習結果として得られた学習器の入力データとすることで、対象物を複数方向から撮影した画像の情報を用いた機械学習を可能にし、又は対象物の評価結果を得ることができるようにしている。 The image output device described in Patent Document 1 captures an object from multiple directions by using the synthesized image generated as described above as input data for a learner that can be machine-learned or obtained as a learning result. It enables machine learning using the information of the obtained image, or obtains the evaluation result of the target object.

特開2018-132962号公報JP 2018-132962 A

特許文献1に画像出力装置は、学習器への入力データとして合成画像を作成するものの、「教師あり学習」させる場合の「学習に使われる出力の正解データ」を作成するものではない。 The image output device in Patent Document 1 creates a synthetic image as input data to a learning device, but does not create "output correct data used for learning" when performing "supervised learning".

「教師あり学習」を行う場合、「学習に使用される入力データ」と「学習に使われる出力の正解データ」との組からなる学習データを準備する必要があるが、特許文献1には、正解データの作成方法については記載されていない。一般に学習データの作成に際し、正解データの作成に時間と労力がかかるが、特許文献1に記載の発明はこのような課題を解決していない。 When performing "supervised learning", it is necessary to prepare learning data consisting of a set of "input data used for learning" and "output correct data used for learning". A method for creating correct data is not described. In general, when creating learning data, it takes time and effort to create correct data, but the invention described in Patent Document 1 does not solve such a problem.

本発明はこのような事情に鑑みてなされたもので、学習器を「教師あり学習」させる学習データを効率よく作成し、学習器を機械学習させることができる学習データ作成装置及び方法、並びに機械学習装置及び方法を提供することを目的とする。 The present invention has been made in view of such circumstances. It is an object of the present invention to provide a learning device and method.

上記目的を達成するために本発明の一の態様に係る学習データ作成装置は、被写体を第1撮影方法で撮影して第1画像を取得する第1画像取得部と、被写体を第1撮影方法とは異なる第2撮影方法で撮影して第2画像を取得する第2画像取得部と、第1画像と第2画像とを組とし、組を学習器の学習データとして記憶部に記憶させる記憶制御部と、を備える。 In order to achieve the above object, a learning data creation apparatus according to one aspect of the present invention includes: a second image obtaining unit for obtaining a second image by photographing with a second photographing method different from the first image and the second image; and a control unit.

本発明の一の態様によれば、例えば、第1画像取得部に取得した第1画像を学習器への入力データとし、第2画像取得部に取得した第2画像を学習器に対する正解データとすることができる。これにより、第1画像と第2画像の組を効率よく作成することができる。 According to one aspect of the present invention, for example, the first image acquired by the first image acquisition unit is used as input data to the learning device, and the second image acquired by the second image acquisition unit is used as correct data for the learning device. can do. Thereby, a set of the first image and the second image can be efficiently created.

本発明の他の態様に係る学習データ作成装置において、第2画像取得部は、第2撮影方法で撮影された画像を画像処理して第2画像を生成する画像処理部を含み、記憶制御部は、第1画像を学習器の入力データとし、第2画像を学習器の正解データとして記憶部に記憶させることが好ましい。 In the learning data creation device according to another aspect of the present invention, the second image acquisition unit includes an image processing unit that processes the image captured by the second image capturing method to generate the second image, and the storage control unit Preferably, the first image is used as input data for the learning device, and the second image is stored as correct data for the learning device in the storage unit.

本発明の更に他の態様に係る学習データ作成装置において、第2撮影方法で撮影された画像は、被写体への照明の入射方向が異なる複数の画像であり、画像処理部は、複数の画像から被写体に付加された刻印又は印字が強調された第2画像を生成することが好ましい
本発明の更に他の態様に係る学習データ作成装置において、画像処理部は、複数の画像から被写体に付加された刻印又は印字が強調された複数のエッジ画像を生成し、生成した複数のエッジ画像を合成した合成画像を第2画像として生成することが好ましい。
In the learning data creation device according to still another aspect of the present invention, the images captured by the second capturing method are a plurality of images with different incident directions of illumination on the subject, and the image processing unit converts the plurality of images into It is preferable to generate a second image in which the stamp or print added to the subject is emphasized. It is preferable to generate a plurality of edge images in which the engraving or print is emphasized, and generate a composite image as the second image by synthesizing the generated plurality of edge images.

本発明の更に他の態様に係る学習データ作成装置において、画像処理部は、複数の画像を入力画像とし、被写体に付加された刻印又は印字が強調された画像を認識結果として出力する学習済み認識器を含み、複数の画像を認識器に入力し、認識器の認識結果を第2画像として生成することが好ましい。 In the learning data creation device according to still another aspect of the present invention, the image processing unit uses a plurality of images as input images, and outputs an image in which the stamp or print added to the subject is emphasized as a recognition result. and inputting a plurality of images to the recognizer and generating the recognition result of the recognizer as the second image.

本発明の更に他の態様に係る学習データ作成装置において、被写体は、刻印又は印字が付加された薬剤であることが好ましい。 In the learning data creation device according to still another aspect of the present invention, it is preferable that the subject is a drug to which a stamp or print is added.

本発明の更に他の態様に係る学習データ作成装置において、第1撮影方法と第2撮影方法とは、被写体に対する照明方法が異なることが好ましい。 In the learning data creation device according to still another aspect of the present invention, it is preferable that the first imaging method and the second imaging method use different illumination methods for the subject.

本発明の更に他の態様に係る学習データ作成装置において、第1撮影方法の照明方法は、被写体に対して全方向から光を入射させ、第2撮影方法の照明方法は、被写体に対する入射方向が異なる複数の光を順次入射させることが好ましい。 In the learning data creation device according to still another aspect of the present invention, the lighting method of the first photographing method causes light to enter the subject from all directions, and the lighting method of the second photographing method causes light to enter the subject from all directions. It is preferable to sequentially enter a plurality of different lights.

本発明の更に他の態様に係る学習データ作成装置において、第1画像取得部及び第2画像取得部は、被写体の周囲の配置された複数の照明光源と、複数の照明光源の点灯を制御する照明制御部とを含み、照明制御部は、第1撮影方法の照明方法として複数の照明光源を同時に点灯させ、第2撮影方法の照明方法として複数の照明光源を順次点灯させることが好ましい。 In the learning data creation device according to still another aspect of the present invention, the first image acquisition unit and the second image acquisition unit control lighting of the plurality of illumination light sources arranged around the subject and the illumination of the plurality of illumination light sources. Preferably, the illumination control unit simultaneously turns on the plurality of illumination light sources as the illumination method of the first imaging method, and sequentially turns on the plurality of illumination light sources as the illumination method of the second imaging method.

本発明の更に他の態様に係る学習データ作成装置において、複数の照明光源は、被写体の前方、後方、右方及び左方のうち少なくとも2箇所に配置されたものであることが好ましい。 In the learning data creation device according to still another aspect of the present invention, it is preferable that the plurality of illumination light sources are arranged at least two of the front, rear, right and left sides of the subject.

本発明の更に他の態様に係る学習データ作成装置において、第1画像取得部及び第2画像取得部は、被写体を撮影するカメラ部と、カメラ部を制御するカメラ制御部と、画像処理部とを含み、カメラ制御部は、第1撮影方法の照明方法により被写体が照明されると、カメラ部により被写体を撮影させ、第2撮影方法の照明方法により被写体が順次照明されると、順次照明される毎に被写体を撮影させ、画像処理部は、順次照明される毎にカメラ部により撮影された複数の画像を画像処理して第2画像を生成することが好ましい。 In the learning data creation device according to still another aspect of the present invention, the first image acquisition unit and the second image acquisition unit include a camera unit that captures an image of a subject, a camera control unit that controls the camera unit, and an image processing unit. The camera control unit causes the camera unit to photograph the subject when the subject is illuminated by the illumination method of the first photographing method, and sequentially illuminates the subject when the subject is sequentially illuminated by the illumination method of the second photographing method. Preferably, the subject is photographed each time the subject is illuminated, and the image processing section processes a plurality of images photographed by the camera section each time the illumination is sequentially performed to generate the second image.

本発明の更に他の態様に係る学習データ作成装置において、被写体は、刻印又は印字が付加され、画像処理部は、被写体に付加された刻印又は印字を強調する画像処理を実施し、刻印又は印字を強調した第2画像を生成することが好ましい。 In the learning data creation device according to still another aspect of the present invention, the subject is stamped or printed, and the image processing unit performs image processing for emphasizing the stamp or print added to the subject. It is preferable to generate a second image that emphasizes the .

本発明の更に他の態様に係る学習データ作成装置において、第1画像取得部及び第2画像取得部は、被写体の周囲の配置された複数の照明光源であって、それぞれ波長帯域が異なる複数の光を被写体に照射する複数の照明光源と、波長帯域が異なる複数の光にそれぞれ感度を有する複数種類の画素を備えたカメラ部とを含み、第1撮影方法は、複数の照明光源により照明された被写体をカメラ部により撮影して第1画像を取得し、第2撮影方法は、複数の照明光源により照明された被写体をカメラ部により撮影し、複数種類の画素に対応して複数の画像を取得し、第2画像取得部は、複数の画像を画像処理して第2画像を取得することが好ましい。 In the learning data creation device according to still another aspect of the present invention, the first image acquisition unit and the second image acquisition unit are a plurality of illumination light sources arranged around the subject, each having a plurality of different wavelength bands. A first photographing method includes a plurality of illumination light sources for irradiating a subject with light, and a camera section having a plurality of types of pixels each having sensitivity to a plurality of lights having different wavelength bands. In the second imaging method, the subject illuminated by a plurality of illumination light sources is photographed by the camera section, and a plurality of images corresponding to a plurality of types of pixels are obtained. It is preferable that the second image acquisition unit acquires the second image by performing image processing on the plurality of images.

本発明の更に他の態様に係る学習データ作成装置において、被写体は、刻印が付加され、第2画像取得部は、被写体の3次元情報を取得する3次元情報取得部と、画像処理部とを含み、画像処理部は、3次元情報取得部により取得された被写体の3次元情報に基づいて被写体の刻印を抽出し、被写体の刻印を強調した第2画像を生成することが好ましい。 In the learning data creation device according to still another aspect of the present invention, the subject is stamped, and the second image acquisition section includes a three-dimensional information acquisition section for acquiring three-dimensional information of the subject, and an image processing section. Preferably, the image processing section extracts the marking of the subject based on the three-dimensional information of the subject obtained by the three-dimensional information obtaining section, and generates a second image in which the marking of the subject is emphasized.

本発明の更に他の態様に係る学習データ作成装置において、第1撮影方法と第2撮影方法とは、それぞれ異なる撮影モダリティを使用して被写体を撮影する撮影方法であることが好ましい。 In the learning data creation device according to still another aspect of the present invention, it is preferable that the first imaging method and the second imaging method are imaging methods for imaging a subject using different imaging modalities.

本発明の更に他の態様に係る学習データ作成装置において、第1撮影方法及び第2撮影方法のうちの一方の撮影方法は、CT装置を使用して被写体を撮影する撮影方法であり、第1撮影方法及び第2撮影方法のうちの他方の撮影方法は、MRI装置を使用して被写体を撮影する撮影方法であることが好ましい。 In the learning data creation device according to still another aspect of the present invention, one of the first imaging method and the second imaging method is an imaging method for imaging a subject using a CT apparatus, and the first The other imaging method of the imaging method and the second imaging method is preferably an imaging method of imaging a subject using an MRI apparatus.

本発明の更に他の態様に係る機械学習装置は、学習器と、上記の学習データ作成装置の記憶部に記憶された学習データを使用し、組を構成する第1画像を学習器を機械学習させる場合の入力画像とし、組を構成する第2画像を正解データとして学習器を機械学習させる学習制御部と、を備える。 A machine learning device according to still another aspect of the present invention uses a learning device and learning data stored in a storage unit of the learning data generation device to machine-learn the first images forming a set. a learning control unit that causes the learning device to perform machine learning using the second image that constitutes the set as the input image in the case of causing the learning device to perform machine learning.

本発明の更に他の態様に係る機械学習装置は、被写体を第1撮影方法で撮影して第1画像を取得する第1画像取得部と、被写体を第1撮影方法とは異なる第2撮影方法で撮影して第2画像を取得する第2画像取得部と、学習器と、第1画像と第2画像とを組として、学習器を機械学習させる学習制御部と、を備える。 A machine learning device according to still another aspect of the present invention includes a first image acquiring unit that acquires a first image by photographing a subject with a first photographing method, and a second photographing method that differs from the first photographing method. , a learning device, and a learning control unit that causes the learning device to perform machine learning on the basis of a set of the first image and the second image.

本発明の更に他の態様に係る学習データ作成方法は、第1画像取得部が、被写体を第1撮影方法で撮影して第1画像を取得するステップと、第2画像取得部が、被写体を第1撮影方法とは異なる第2撮影方法で撮影して第2画像を取得するステップと、記憶制御部が、第1画像と第2画像とを組とし、組を学習器の学習データとして記憶部に記憶させるステップと、を含む。 A learning data creation method according to still another aspect of the present invention includes a step in which a first image obtaining unit obtains a first image by photographing a subject using a first photographing method; acquiring a second image by photographing with a second photographing method different from the first photographing method; and storing the first image and the second image as a set by the memory control unit as learning data for the learning device. and storing in the unit.

本発明の更に他の態様に係る学習データ作成方法において、被写体は、刻印又は印字が付加された薬剤であることが好ましい。 In the learning data creation method according to still another aspect of the present invention, it is preferable that the subject is a drug with a stamp or print added.

本発明の更に他の態様に係る学習データ作成方法において、第1撮影方法と第2撮影方法とは、被写体に対する照明方法が異なることが好ましい。 In the learning data creation method according to still another aspect of the present invention, it is preferable that the first imaging method and the second imaging method use different lighting methods for the subject.

本発明の更に他の態様に係る機械学習方法は、学習制御部が、上記の学習データ作成方法により作成され、記憶部に記憶された学習データを使用し、組を構成する第1画像を学習器を機械学習させる場合の入力画像とし、組を構成する第2画像を正解データとして学習器を機械学習させるステップを含む。 In a machine learning method according to still another aspect of the present invention, the learning control unit uses the learning data created by the learning data creating method and stored in the storage unit to learn the first images forming the set. a step of machine-learning the learner by using the second image forming the pair as the correct data, with the second image as the input image for machine learning of the learner.

本発明の更に他の態様に係る機械学習方法は、第1画像取得部が、被写体を第1撮影方法で撮影して第1画像を取得するステップと、第2画像取得部が、被写体を第1撮影方法とは異なる第2撮影方法で撮影して第2画像を取得するステップと、学習制御部が、第1画像と第2画像とを組として、学習器を機械学習させるステップと、を含む。 A machine learning method according to still another aspect of the present invention includes a step in which a first image obtaining section obtains a first image by photographing a subject with a first photographing method; a step of acquiring a second image by photographing with a second photographing method different from the first photographing method; include.

本発明によれば、学習器を「教師あり学習」させる学習データを効率よく自動で作成することができる。 According to the present invention, it is possible to efficiently and automatically create learning data for “supervised learning” of a learning device.

図1は、本発明に係る機械学習装置の概略構成を示すブロック図である。FIG. 1 is a block diagram showing a schematic configuration of a machine learning device according to the present invention. 図2は、図1に示した学習データ作成装置の第1実施形態の要部ブロック図である。FIG. 2 is a block diagram of main parts of the first embodiment of the learning data creation device shown in FIG. 図3は、カメラ部及び照明光源を使用して、分包袋の画像を取得する様子を示す側面図である。FIG. 3 is a side view showing how an image of the sachet is acquired using the camera section and the illumination light source. 図4は、カメラ部及び照明光源を使用して、分包袋の画像を取得する様子を示す平面図である。FIG. 4 is a plan view showing how an image of the sachet is acquired using the camera section and the illumination light source. 図5は、分包袋内の1つの薬剤の照明方向が異なる5枚の画像を示す図である。FIG. 5 is a diagram showing five images of one medicine in a sachet with different lighting directions. 図6は、主として図2に示した画像処理部の具体的な構成を示すブロック図である。FIG. 6 is a block diagram mainly showing a specific configuration of the image processing section shown in FIG. 図7は、分包袋の画像から1つの薬剤の領域を切り出した薬剤画像の一例を示す図である。FIG. 7 is a diagram showing an example of a drug image obtained by cutting out one drug region from the image of the sachet. 図8は、薬剤の中心を通るx-y平面で切断した薬剤の断面構造の模式図である。FIG. 8 is a schematic diagram of the cross-sectional structure of the drug taken along the xy plane passing through the center of the drug. 図9は、エッジ画像生成部でのエッジ抽出に使用するソーベルフィルタの一例を示す図である。FIG. 9 is a diagram showing an example of a Sobel filter used for edge extraction in the edge image generator. 図10は、記憶部に記憶された第1画像、第2画像の複数組の学習データセットのイメージ図である。FIG. 10 is an image diagram of a plurality of sets of learning data sets of the first image and the second image stored in the storage unit. 図11は、図1に示した学習データ作成装置の第2実施形態の要部を示す図である。FIG. 11 is a diagram showing the main part of the second embodiment of the learning data creation device shown in FIG. 図12は、図1に示した学習データ作成装置の第2実施形態に使用されるカメラ部のカラーイメージセンサの分光感度を示す図である。FIG. 12 is a diagram showing the spectral sensitivity of the color image sensor of the camera section used in the second embodiment of the learning data creation device shown in FIG. 図13は、図1に示した学習データ作成装置の第3実施形態の要部を示す図である。FIG. 13 is a diagram showing the main part of the third embodiment of the learning data creation device shown in FIG. 図14は、本発明に係る機械学習方法の実施形態を示すフローチャートである。FIG. 14 is a flow chart illustrating an embodiment of a machine learning method according to the invention.

以下、添付図面に従って本発明に係る学習データ作成装置及び方法、並びに機械学習装置及び方法の好ましい実施形態について説明する。 DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of a learning data creation device and method and a machine learning device and method according to the present invention will be described below with reference to the accompanying drawings.

[機械学習装置の構成]
図1は、本発明に係る機械学習装置の概略構成を示すブロック図である。
[Configuration of machine learning device]
FIG. 1 is a block diagram showing a schematic configuration of a machine learning device according to the present invention.

図1に示す機械学習装置10は、学習データ作成装置10Aと学習器50とを含み、学習器50は、学習データ作成装置10Aにより作成された学習データセットにより機械学習を行う。 The machine learning device 10 shown in FIG. 1 includes a learning data creation device 10A and a learning device 50. The learning device 50 performs machine learning using a learning data set created by the learning data creation device 10A.

学習データ作成装置10Aは、第1画像取得部20A及び第2画像取得部20Bを含む画像取得部20と、記憶制御部40とから構成されている。 The learning data generation device 10A is composed of an image acquisition section 20 including a first image acquisition section 20A and a second image acquisition section 20B, and a storage control section 40. FIG.

第1画像取得部20Aは、被写体を第1撮影方法で撮影して第1画像25を取得する部分であり、第2画像取得部20Bは、同じ被写体を第2撮影方法で撮影して第2画像27を取得する部分である。尚、第1画像取得部20Aによる第1撮影方法、及び第2画像取得部20Bによる第2撮影方法の詳細については後述する。 The first image acquisition section 20A is a section that acquires a first image 25 by photographing a subject with a first photographing method, and the second image acquisition section 20B photographs the same subject with a second photographing method and obtains a second image. This is the part where the image 27 is acquired. Details of the first imaging method by the first image acquisition unit 20A and the second imaging method by the second image acquisition unit 20B will be described later.

第1画像取得部20Aにより取得された第1画像25、及び第2画像取得部20Bにより取得された第2画像27は、それぞれ記憶制御部40に出力される。 The first image 25 acquired by the first image acquisition section 20A and the second image 27 acquired by the second image acquisition section 20B are output to the storage control section 40, respectively.

記憶制御部40は、入力する第1画像25と第2画像27とを組とし、記憶部42に記憶させる。記憶部42は、学習データ作成装置10Aに内蔵されたハードディスク装置等のメディアでもよいし、学習データ作成装置10Aに着脱自在なリムーバブルメディアでもよい。 The storage control unit 40 sets the input first image 25 and the second image 27 as a set and causes the storage unit 42 to store the set. The storage unit 42 may be a medium such as a hard disk device built into the learning data creation device 10A, or may be a removable medium that is detachable from the learning data creation device 10A.

ここで、第1画像25と第2画像27の組は、学習器50による機械学習時に、第1画像25と第2画像27のうちのいずれか一方の画像(本例では、第1画像25)は、学習器50の学習に使用される入力データとし、他方の画像(本例では第2画像27)を学習器50の学習に使用される正解データとすることができる。 Here, the set of the first image 25 and the second image 27 is one of the first image 25 and the second image 27 (in this example, the first image 25 ) can be used as input data used for learning by the learner 50 , and the other image (in this example, the second image 27 ) can be used as correct data used for learning by the learner 50 .

記憶制御部40は、複数の被写体の各被写体に対して、それぞれ第1画像25と第2画像27とを取得し、第1画像25と第2画像27の複数組の学習データセットを、記憶部42に記憶させる。 The storage control unit 40 acquires the first image 25 and the second image 27 for each subject of the plurality of subjects, and stores a plurality of sets of learning data sets of the first image 25 and the second image 27. stored in the unit 42;

学習器50の学習制御部52は、記憶部42に記憶させた学習データセットに基づいて学習器50を機械学習させることができる。 The learning control unit 52 of the learning device 50 can cause the learning device 50 to perform machine learning based on the learning data set stored in the storage unit 42 .

第1画像を入力画像とし、第2画像を認識結果として出力する学習器50としては、畳み込みニューラルネットワーク(CNN: Convolutional Neural Network))で構成されるものが考えられ、代表的な学習モデルであるVGG16、AlexNetなどを適用することができる。 As the learning device 50 that uses the first image as an input image and outputs the second image as a recognition result, a convolutional neural network (CNN: Convolutional Neural Network) can be considered, which is a typical learning model. VGG16, AlexNet, etc. can be applied.

学習データセットを使用し、学習制御部52により学習器50を「教師あり学習」させる方法は周知であるため、ここでは学習器50の学習方法の説明は省略する。 Since the method of using the learning data set and causing the learning controller 52 to perform “supervised learning” of the learning device 50 is well known, the description of the learning method of the learning device 50 is omitted here.

学習済みの学習器(認識器)50は、任意の被写体の画像(例えば、第1画像25に相当する画像)を入力すると、任意の被写体を第2撮影方法で撮影して取得される第2画像27と同等の画像を認識結果として出力する。 When an image of an arbitrary subject (for example, an image corresponding to the first image 25) is input, the learned learning device (recognizing device) 50 acquires a second image obtained by photographing the arbitrary subject with the second photographing method. An image equivalent to the image 27 is output as a recognition result.

これにより、任意の被写体を第2撮影方法で撮影して取得される第2画像27と同等の画像(認識結果)を、任意の被写体を第2撮影方法で撮影することなく取得することができる。 Accordingly, an image (recognition result) equivalent to the second image 27 obtained by photographing an arbitrary subject by the second photographing method can be obtained without photographing the arbitrary subject by the second photographing method. .

<学習データ作成装置の第1実施形態>
図2は、図1に示した学習データ作成装置10Aの第1実施形態の要部ブロック図であり、特に画像取得部20に関して示している。
<First Embodiment of Learning Data Creation Device>
FIG. 2 is a block diagram of the essential parts of the first embodiment of the learning data creation device 10A shown in FIG.

本例の被写体は、刻印又は印字が付加された薬剤であり、図2に示す画像取得部20は、薬剤を撮影するカメラ部22と、薬剤を照明する照明光源24と、カメラ部22及び照明光源24を制御する制御部26と、画像処理部30とから構成されている。 The subject in this example is a drug with a stamp or print added, and the image acquisition unit 20 shown in FIG. It is composed of a control section 26 that controls the light source 24 and an image processing section 30 .

図3及び図4は、カメラ部22(22A、22B)、及び照明光源24(24F,24B,24R,24L)を使用して、分包袋TPの画像を取得する様子を示す側面図及び平面図である。 3 and 4 are a side view and a plan view showing how images of the sachet TP are acquired using the camera units 22 (22A, 22B) and the illumination light sources 24 (24F, 24B, 24R, 24L). It is a diagram.

分包袋TPが連続して構成される薬包帯PBは、ステージ21上に載置され、順次搬送される。ステージ21は、xy平面(水平面)に平行な載置面及び裏面を有する板状部材である。ステージ21は、光透過性を有する材料によって構成されている。ここでは、ステージ21は、x軸方向に130mm、y軸方向に80mmの大きさを有している。 A medicine bandage PB in which sachets TP are continuously formed is placed on a stage 21 and conveyed in sequence. The stage 21 is a plate-like member having a mounting surface and a back surface parallel to the xy plane (horizontal plane). The stage 21 is made of a material having optical transparency. Here, the stage 21 has a size of 130 mm in the x-axis direction and 80 mm in the y-axis direction.

分包袋TPには、それぞれ調剤された1回に服用する複数の薬剤が分包されている。照明光源24の複数の照明光源24F,24B,24R,24Lは、薬包帯PBの上側(図3の+z方向側)及び下側(図3の-z方向側)に、それぞれ前方、後方、右方及び左方の4つの照明光源24F,24B,24R,及び24Lが配置される。尚、図3においては薬包帯PBの右方及び左方の照明光源24R及び24Lの図示を、図4においては薬包帯PBの下側の4つの照明光源24F,24B,24R,及び24Lの図示を、それぞれ省略している。 The sachet TP contains a plurality of individually-prepared medicines to be taken at one time. A plurality of illumination light sources 24F, 24B, 24R, and 24L of the illumination light source 24 are arranged on the upper side (the +z direction side in FIG. 3) and the lower side (the −z direction side in FIG. 3) of the medical bandage PB, respectively. Four left and right illumination sources 24F, 24B, 24R and 24L are arranged. 3 shows illumination light sources 24R and 24L on the right and left sides of the medical bandage PB, and FIG. 4 shows four illumination light sources 24F, 24B, 24R, and 24L on the lower side of the medical bandage PB. are omitted respectively.

薬包帯PBの上側の4つの照明光源24F,24B,24R,及び24Lは、xy平面視において,それぞれ図4の-x方向、+x方向、+y方向及び、-y方向に斜め上方向から光を照射する。即ち、照明光源24Fの照明方向は、xy平面視において照明光源24Bの照明方向と対向する方向であり、照明光源24Rの照明方向は、xy平面視において照明光源24F,24Bの照明方向と直交する方向であり、照明光源24Lの照明方向と対向する方向である。 The four illumination light sources 24F, 24B, 24R, and 24L on the upper side of the medical bandage PB emit light obliquely upward in the -x direction, +x direction, +y direction, and -y direction of FIG. 4 in the xy plan view. Irradiate. That is, the illumination direction of the illumination light source 24F is a direction facing the illumination direction of the illumination light source 24B in xy plan view, and the illumination direction of the illumination light source 24R is orthogonal to the illumination directions of the illumination light sources 24F and 24B in xy plan view. direction, which is the direction opposite to the illumination direction of the illumination light source 24L.

薬包帯PBの下側の照明光源24F,24B,24R,及び24Lについても、同様に配置されている。これにより、照明光源24は、分包袋TP(に分包された薬剤)の表側及び裏側に光を照射する。 The illumination sources 24F, 24B, 24R, and 24L on the lower side of the medical bandage PB are similarly arranged. Thereby, the illumination light source 24 irradiates light on the front side and the back side of (the drug packaged in) the sachet TP.

カメラ部22(2台のカメラ部22A、22B)は、デジタルカメラにより構成される。図3に示すように、一方のカメラ部22Aは薬包帯PBの上側に、他方のカメラ部22Bは薬包帯PBの下側に配置される。カメラ部22A及びカメラ部22Bは、分包袋TP(に分包された薬剤)の表側及び裏側を撮影する。 The camera section 22 (two camera sections 22A and 22B) is composed of a digital camera. As shown in FIG. 3, one camera section 22A is arranged above the medical bandage PB, and the other camera section 22B is arranged below the medical bandage PB. The camera section 22A and the camera section 22B photograph the front side and the back side of (the drug packaged in) the sachet TP.

分包袋TP(薬包帯PB)は、図示しない搬送機構により図4の+x方向(薬包帯PBの長手方向)に搬送される。撮影の際には、分包袋TPの上側の照明光源24F,24B,24R,及び24Lによって分包袋TPの上側が、分包袋TPの下側の照明光源24F,24B,24R,及び24Lによって分包袋TPの下側が、それぞれ前後左右の4方向から照明される。尚、分包袋TPには、撮影の際には照明光源24から照射される光以外の光は照射されないことが好ましい。 The sachet TP (medicine bandage PB) is conveyed in the +x direction (longitudinal direction of the medicine bandage PB) in FIG. 4 by a conveying mechanism (not shown). When photographing, the upper side of the sachet TP is illuminated by the illumination light sources 24F, 24B, 24R, and 24L on the upper side of the sachet TP. illuminates the lower side of the sachet TP from four directions, front, rear, left, and right, respectively. It is preferable that the sachet TP is not irradiated with light other than the light emitted from the illumination light source 24 during photographing.

図4に示すように、分包袋TPの上側の照明光源24F,24B,24R,及び24Lのそれぞれと、カメラ部22Aの撮影光軸PAとの間隔(d1、d2、d3、d4)は同じである。つまり、複数の照明光源24F,24B,24R,及び24Lと撮影光軸PAとが等間隔(d1=d2=d3=d4)である。分包袋TPの下側の照明光源24F,24B,24R,及び24Lのそれぞれとカメラ部22Bについても、同様に配置されている。 As shown in FIG. 4, the distances (d1, d2, d3, d4) between each of the illumination light sources 24F, 24B, 24R, and 24L on the upper side of the sachet TP and the photographing optical axis PA of the camera section 22A are the same. is. That is, the plurality of illumination light sources 24F, 24B, 24R, and 24L and the photographing optical axis PA are equidistant (d1=d2=d3=d4). The illumination light sources 24F, 24B, 24R, and 24L on the lower side of the packet TP and the camera section 22B are similarly arranged.

図2に戻って、制御部26は、カメラ部22A,22Bを制御するカメラ制御部と、照明光源24を制御する照明制御部とを含み、分包袋TPの上側を撮影する場合、照明制御部は、分包袋TPの上側の照明光源24F,24B,24R,及び24Lを順次点灯させ、分包袋TPをそれぞれ異なる方向から順次照明する。カメラ制御部は、各照明方向から照明された分包袋TPを、順次照明される毎にカメラ部22Aにより撮影させる。 Returning to FIG. 2, the control unit 26 includes a camera control unit that controls the camera units 22A and 22B, and an illumination control unit that controls the illumination light source 24. When photographing the upper side of the sachet TP, the illumination control The unit sequentially lights the illumination light sources 24F, 24B, 24R, and 24L above the sachet TP, and sequentially illuminates the sachet TP from different directions. The camera control section causes the camera section 22A to photograph the sachets TP illuminated from each lighting direction each time they are sequentially illuminated.

また、制御部26の照明制御部は、上側の照明光源24F,24B,24R,及び24Lを同時に点灯させ、均一に(全方向から)照明させ、カメラ制御部は、均一に(全方向から)照明された分包袋TPをカメラ部22Aにより撮影させる。 In addition, the illumination control unit of the control unit 26 turns on the upper illumination light sources 24F, 24B, 24R, and 24L at the same time to uniformly illuminate (from all directions), and the camera control unit uniformly (from all directions) The illuminated sachet TP is photographed by the camera section 22A.

分包袋TPの下側を撮影する場合、制御部26は、分包袋TPの下側の照明光源24F,24B,24R,24L、及び下側のカメラ部22Bを上記と同様に制御する。 When photographing the lower side of the sachet TP, the control section 26 controls the illumination light sources 24F, 24B, 24R, 24L on the lower side of the sachet TP and the camera section 22B on the lower side in the same manner as described above.

図5は、分包袋TP内の1つの薬剤(薬剤の一例)への照明方向が異なる5枚の画像を示す図である。 FIG. 5 is a diagram showing five images in which one medicine (an example of medicine) in the sachet TP is illuminated in different directions.

図5において、4枚の画像G,G,G及びGは、薬剤の上側の照明光源24F,24B,24R,及び24Lを順次点灯させ、カメラ部22Aより撮影された画像であり、画像Gは、上側の照明光源24F,24B,24R,及び24Lを同時に点灯させ、カメラ部22Aより撮影された画像である。 In FIG. 5, four images GF , GB, GR , and GL are images captured by the camera unit 22A by sequentially turning on the illumination light sources 24F, 24B , 24R, and 24L above the drug. , and an image GA are images captured by the camera unit 22A with the upper illumination light sources 24F, 24B, 24R, and 24L turned on simultaneously.

図5に示す4枚の画像G,G,G及びGには、それぞれ照明方向に伴って輝度ムラが発生している。また、図5に示す各画像上の「A」は、刻印Sを示しているが、画像G,G,G及びGの刻印Sは、薬剤の表面の凹凸形状であり、後述するように照明方向に伴って、刻印Sの影の出方が異なるものとなる。 In the four images GF , GB , GR , and GL shown in FIG. 5, luminance unevenness occurs along with the illumination direction. Also, " A " on each image shown in FIG. As shown, the appearance of the shadow of the stamp S differs depending on the lighting direction.

一方、4つの照明光源24F,24B,24R,24Lを同時に点灯させて撮影された画像Gには輝度ムラは発生しないが、刻印Sの影が出にくいため、刻印Sは不明瞭になる。尚、図5上では、刻印Sの影の出方や刻印Sが明瞭か不明瞭かは図示されていない。 On the other hand, the image GA photographed with the four illumination light sources 24F, 24B, 24R, and 24L turned on at the same time does not have uneven luminance, but the marking S is less clear because the shadow of the marking S is less likely to appear. It should be noted that FIG. 5 does not show how the shadow of the marking S appears or whether the marking S is clear or unclear.

図6は、主として図2に示した画像処理部30の具体的な構成を示すブロック図である。 FIG. 6 is a block diagram mainly showing a specific configuration of the image processing section 30 shown in FIG.

図6に示す画像処理部30は、画像切り出し部32及びエッジ画像生成部34から構成されている。 The image processing section 30 shown in FIG. 6 is composed of an image clipping section 32 and an edge image generating section 34 .

カメラ部22A、22Bにより取得された分包袋TPを撮影した画像(本例では、表側の5枚の画像、及び裏側の5枚の画像の合計10枚の画像)は、画像切り出し部32に加えられる。 Images of the sachet TP acquired by the camera units 22A and 22B (in this example, 5 images of the front side and 5 images of the back side, a total of 10 images) are sent to the image clipping unit 32. Added.

画像切り出し部32は、分包袋TPの画像から分包袋TPに分包された複数の薬剤の領域をそれぞれ切り出し、複数の薬剤画像を生成する。 The image clipping unit 32 clips regions of a plurality of medicines packaged in the sachet TP from the image of the sachet TP to generate a plurality of medicine images.

図7は、分包袋TPの画像から1つの薬剤の領域を切り出した薬剤画像の一例を示す図である。 FIG. 7 is a diagram showing an example of a drug image obtained by cutting out one drug region from the image of the sachet TP.

薬剤画像の切り出しは、薬剤の外形を検出し、薬剤の外形にしたがって切り出すことが好ましい。図7に示す例では、分包袋TPの画像から薬剤の外形が内接する矩形領域を切り出している。このようにして、1つの薬剤について、10枚の薬剤画像が切り出される。 It is preferable that the medicine image is cut out according to the outline of the medicine after detecting the outline of the medicine. In the example shown in FIG. 7, a rectangular area in which the outer shape of the drug is inscribed is cut out from the image of the sachet TP. In this way, 10 drug images are cut out for one drug.

尚、図7に示す薬剤画像は、全方向から光を入射させて撮影した分包袋TPの画像から切り出した、輝度ムラのない画像である。 Note that the medicine image shown in FIG. 7 is an image without luminance unevenness, which is cut out from the image of the sachet TP photographed with light incident from all directions.

以下、10枚の薬剤画像のうちの薬剤の上側のカメラ部22Aにより撮影された5枚の薬剤画像を、図5に示した画像G,G,G、G及びGとして、これらの画像に対する画像処理について説明する。 Hereinafter, five drug images taken by the camera unit 22A above the drug among the ten drug images are defined as images GF , GB , GR , GL and GA shown in FIG. Image processing for these images will be described.

図6に示す画像切り出し部32により切り出された画像Gは、被写体(薬剤)に対して全方向から光を入射させて薬剤を撮影した、輝度ムラのない画像であり、本例では、この画像Gが、第1撮影方法により撮影された第1画像25として出力される。即ち、第1撮影方法は、薬剤を均一に照明(全方向から薬剤を照明)する照明方法にて撮影する撮影方法であり、第1撮影方法により撮影された画像Gを第1画像25とする。 The image G A cut out by the image cut-out unit 32 shown in FIG. 6 is an image without brightness unevenness, which is obtained by photographing the subject (medicine) with light incident from all directions. The image GA is output as the first image 25 photographed by the first photographing method. That is, the first photographing method is a photographing method of photographing with a lighting method of uniformly illuminating the medicine (illuminating the medicine from all directions). do.

また、画像切り出し部32により切り出された5枚の画像G,G,G、G及びGのうちの照明方向に伴って刻印Sの影の出方が異なる4枚の画像G,G,G、Gは、エッジ画像生成部34に加えられる。 Further, among the five images GF , GB , GR , GL , and GA cut out by the image cutout unit 32, four images G in which the appearance of the shadow of the stamp S differs depending on the lighting direction. F , GB , GR and GL are applied to the edge image generator 34 .

エッジ画像生成部34は、4枚の画像G,G,G、Gからそれぞれ照明方向に応じた方向のエッジ抽出フィルタ(例えば、ソーベルフィルタ)を使用し、4枚のエッジ画像を生成する。 The edge image generation unit 34 uses an edge extraction filter (for example, a Sobel filter) in a direction corresponding to the illumination direction from the four images G F , GB, GR , and G L to generate four edge images. to generate

図8は、薬剤Tの中心を通るx-y平面で切断した薬剤Tの断面構造の模式図であり、1画素分のラインのプロファイルを示している。 FIG. 8 is a schematic diagram of the cross-sectional structure of the drug T cut along the xy plane passing through the center of the drug T, showing the profile of a line for one pixel.

図8上の薬剤Tは、直径がDであり、表面には断面がV字状の溝からなる割線である刻印Sが形成されている。刻印Sの溝の幅はWである。尚、刻印Sの溝の幅とは、溝の延伸方向と直交する方向における溝の一方の端から他方の端までの距離であって、薬剤Tの表面における距離をいう。 The medicine T shown in FIG. 8 has a diameter D, and a mark S, which is a secant line formed by a groove having a V-shaped cross section, is formed on the surface. The width of the groove of the mark S is W. The width of the groove of the marking S is the distance from one end to the other end of the groove in the direction orthogonal to the extending direction of the groove, and is the distance on the surface of the medicine T.

ここで、照明光源24の照明光源24Fのみを点灯し、照明光Lにより薬剤Tを照明する場合と、照明光源24の照明光源24Bのみを点灯し、照明光Lにより薬剤Tを照明する場合とでは、刻印Sの影の出方が異なる。 Here, only the illumination light source 24F of the illumination light source 24 is lit and the drug T is illuminated with the illumination light LF , and only the illumination light source 24B of the illumination light source 24 is lit and the drug T is illuminated with the illumination light LB. The appearance of the shadow of the stamp S differs depending on the case.

即ち、照明光Lにより薬剤Tを照明する場合、刻印Sの左側(後方側)の面Sは照明光Lが照射されるが、刻印Sの右側(前方側)の面Sには照明光Lは照射されなくなり、刻印Sの右側の面Sに影が発生する。同様に、照明光Lとは反対方向の照明光Lにより薬剤Tを照明する場合、刻印Sの右側の面Sは照明光Lが照射されるが、刻印Sの左側の面Sには照明光Lは照射されなくなり、刻印Sの左側の面Sに影が発生する。 That is, when the medicine T is illuminated with the illumination light LF , the left side (rear side) surface SB of the marking S is illuminated with the illumination light LF , but the right side (front side) surface SF of the marking S is irradiated with the illumination light LF . is no longer irradiated with the illumination light LF , and a shadow is generated on the right side surface SF of the stamp S. Similarly, when the drug T is illuminated with the illumination light LB in the opposite direction to the illumination light LF , the right surface SF of the marking S is illuminated with the illumination light LB , but the left surface S of the marking S is irradiated with the illumination light LB. The illumination light L B is no longer applied to B , and a shadow is generated on the left surface S B of the stamp S.

図9は、エッジ画像生成部34でのエッジ抽出に使用するソーベルフィルタの一例を示す図である。 FIG. 9 is a diagram showing an example of a Sobel filter used for edge extraction in the edge image generator 34. As shown in FIG.

ソーベルフィルタFは、図8上の右方向(前方)からの照明光Lが照射された薬剤Tの画像Gからエッジ抽出する場合に使用され、ソーベルフィルタFは、図8上の左方向(後方)から照明光Lが照射された薬剤Tの画像Gからエッジ抽出する場合に使用される。 The Sobel filter FF is used for edge extraction from the image GF of the drug T irradiated with illumination light LF from the right direction (front) in FIG. This is used for edge extraction from the image GB of the drug T irradiated with the illumination light LB from the upper left direction (rear).

図9に示すソーベルフィルタF、Fのカーネルサイズは、刻印Sの幅W(の画素数)の半分より大きいサイズのソーベルフィルタを用いることが好ましい。例えば、刻印Sの溝の幅の画素数が4画素であれば、その半分の2画素より大きいサイズ(x軸方向3画素×y軸方向3画素等)のソーベルフィルタを用いる。本実施形態では各照明光によりそれぞれ溝の幅の半分の領域に影が発生するため、エッジからの画素数を鑑みたサイズのエッジ抽出フィルタを用いることで、溝を精度よく抽出するとともに、溝の幅よりも小さい表面の模様及び傷等の刻印以外の情報を低減することができる。 As for the kernel size of the Sobel filters F F and F B shown in FIG. 9, it is preferable to use a Sobel filter with a size larger than half the width W of the stamp S (the number of pixels of the width W). For example, if the number of pixels in the width of the groove of the marking S is 4 pixels, a Sobel filter with a size larger than the half of 2 pixels (3 pixels in the x-axis direction×3 pixels in the y-axis direction, etc.) is used. In the present embodiment, each illumination light produces a shadow in an area half the width of the groove. Therefore, by using an edge extraction filter having a size that takes into consideration the number of pixels from the edge, the groove can be extracted with high accuracy and the groove It is possible to reduce information other than imprints such as surface patterns and scratches smaller than the width of the .

エッジ画像生成部34は、画像G、Gに対してそれぞれソーベルフィルタF、Fを使用し、画像G、Gに対応するエッジ画像を生成する。また、エッジ画像生成部34は、右方向からの照明光が照射された薬剤Tの画像G、及び左方向からの照明光が照射された薬剤Tの画像Gに対しても、上記と同様に照明光の方向に応じたソーベルフィルタを使用することで、エッジ画像を生成する。 The edge image generator 34 uses Sobel filters FF and FB for the images GF and GB , respectively, to generate edge images corresponding to the images GF and GB . In addition, the edge image generation unit 34 also generates the image G R of the drug T irradiated with illumination light from the right direction and the image G L of the drug T irradiated with illumination light from the left direction as described above. Similarly, an edge image is generated by using a Sobel filter corresponding to the direction of illumination light.

尚、エッジ画像生成部34におけるエッジ抽出フィルタ処理に使用するフィルタとしては、ソーベルフィルタに限らず、ラプラシアンフィルタ、キャニーフィルタ等を使用することができる。 Note that the filter used for the edge extraction filtering process in the edge image generation unit 34 is not limited to the Sobel filter, and a Laplacian filter, a Canny filter, or the like can be used.

エッジ画像生成部34は、4枚の画像G,G,G,及びGに対してそれぞれエッジ画像を生成し、生成した4枚のエッジ画像を合成した合成画像を第2画像27として出力する。この第2画像27は、薬剤に付加された刻印Sを強調した画像である。 The edge image generator 34 generates edge images for each of the four images GF , GB , GR , and GL , and generates a second image 27 by combining the generated four edge images. output as This second image 27 is an image in which the stamp S added to the medicine is emphasized.

このように画像取得部20の第1画像取得部20Aは、薬剤を均一に照明(全方向から薬剤を照明)する照明方法にて照明された薬剤を撮影する方法(第1撮影方法)により第1画像25(画像G)を取得する。 In this way, the first image acquisition unit 20A of the image acquisition unit 20 uses a method (first imaging method) of photographing an illuminated drug by a lighting method of uniformly illuminating the drug (illuminating the drug from all directions). 1 image 25 (image G A ) is acquired.

一方、画像取得部20の第2画像取得部20Bは、第1撮影方法とは異なる第2撮影方法で撮影した第2画像を取得する。即ち、第2画像取得部20Bは、薬剤に対する入射方向が異なる複数の光(前後左右の光)を順次入射させて撮影し、4枚の画像G,G,G、G及びGを取得し、薬剤に付加された刻印を強調する画像処理を実施し、刻印を強調した第2画像27を取得する。 On the other hand, the second image acquisition section 20B of the image acquisition section 20 acquires a second image captured by a second imaging method different from the first imaging method. That is, the second image acquisition unit 20B captures the four images G F , G B , G L , G R and G by sequentially capturing a plurality of light beams (front, back, left, and right) incident on the drug in different directions. A is acquired, image processing is performed to emphasize the stamp added to the medicine, and a second image 27 in which the stamp is emphasized is acquired.

画像処理部30は、10枚の薬剤画像のうちの薬剤の下側のカメラ部22Bにより撮影された5枚の薬剤画像に基づいて、第1画像25及び第2画像27を取得することは言うまでもない。 Needless to say, the image processing unit 30 acquires the first image 25 and the second image 27 based on the five drug images captured by the camera unit 22B below the drug among the ten drug images. stomach.

画像処理部30から出力される第1画像25及び第2画像27は、図1に示した記憶制御部40に加えられる。 The first image 25 and the second image 27 output from the image processing section 30 are applied to the storage control section 40 shown in FIG.

記憶制御部40は、前述したように第1画像25と第2画像27とを組とし、この組を学習器50の学習データとして記憶部42に記憶させる。 The memory control unit 40 sets the first image 25 and the second image 27 as a set as described above, and stores this set in the storage unit 42 as learning data for the learning device 50 .

尚、本例の照明光源24は、4つの照明光源24F,24B,24R,24Lを有し、被写体の前方、後方、右方及び左方の4箇所に配置されているが、少なくとも2箇所に配置されたものでもよい。 The illumination light source 24 in this example has four illumination light sources 24F, 24B, 24R, and 24L, which are arranged in front, rear, right, and left of the subject. It may be arranged.

また、図6に示した画像処理部30(特にエッジ画像生成部34)の代わりに、学習済み認識器を適用してもよい。 Also, a learned recognizer may be applied instead of the image processing unit 30 (especially the edge image generating unit 34) shown in FIG.

この場合の学習済み認識器は、被写体への照明の入射方向が異なる複数の画像一式(本例では、4枚の画像G,G,G、G及びG)を入力画像とし、被写体に付加された刻印又は印字が強調された画像を認識結果として出力するように機械学習されたものである。この認識器への入力データとして、被写体(薬剤)への照明の入射方向が異なる複数の画像一式を認識器に入力させると、認識器は、認識結果である刻印又は印字が強調された画像を第2画像27として生成(出力)することができる。 The trained recognizer in this case uses a set of multiple images (in this example, four images GF , GB , GL , GR and GA ) with different illumination directions to the subject as input images. , a stamp added to the subject or an image in which the print is emphasized is output as a recognition result. As input data to this recognizer, when a set of multiple images with different illumination directions on the subject (medicine) is input to the recognizer, the recognizer outputs an image in which the marking or printing is emphasized, which is the recognition result. It can be generated (output) as a second image 27 .

図10は、記憶部42に記憶された第1画像25、第2画像27の複数組の学習データセットのイメージ図である。 FIG. 10 is an image diagram of a plurality of sets of learning data sets of the first image 25 and the second image 27 stored in the storage unit 42. As shown in FIG.

記憶部42には、刻印の形状等が異なる複数の薬剤の各薬剤の第1画像25と第2画像27とを1組として複数組記憶される。 The storage unit 42 stores a plurality of sets of the first image 25 and the second image 27 of each of a plurality of drugs with different stamp shapes and the like as one set.

これにより、学習データ作成装置10Aは、学習器50を「教師あり学習」させるための学習データセット(第1画像25と第2画像27の複数組)を効率よく作成し、記憶部42に保存させることができる。 As a result, the learning data creation device 10A efficiently creates a learning data set (a plurality of sets of the first image 25 and the second image 27) for “supervised learning” of the learning device 50, and stores the learning data set in the storage unit 42. can be made

図1に戻って、学習器50の学習制御部52は、学習データ作成装置10Aにより作成された学習データセット(記憶部42に保存された学習データセット)を使用し、学習器50を機械学習させる。例えば、学習器50のパラメータ(CNN等の学習モデルの各パラメータ)を最適化する学習が実施される。 Returning to FIG. 1, the learning control unit 52 of the learning device 50 uses the learning data set created by the learning data creation device 10A (the learning data set stored in the storage unit 42), and the learning device 50 performs machine learning. Let For example, learning is performed to optimize the parameters of the learning device 50 (each parameter of a learning model such as CNN).

本例の学習データセットにより機械学習させた学習器50は、任意の薬剤の1枚の画像を入力すると、その薬剤に付加された刻印又は印字を強調したエッジ画像を認識結果として出力する。この認識結果は、任意の薬剤の鑑別又は監査を行うために使用することができ、また、任意の薬剤の画像にエッジ画像を合成することで、薬剤の刻印等が視認しやすい合成画像の生成に使用することができる。 The learning device 50, which has undergone machine learning using the learning data set of this example, outputs an edge image that emphasizes the engraving or printing added to the medicine as a recognition result when a single image of an arbitrary medicine is input. This recognition result can be used to identify or audit any drug, and by combining the edge image with the image of any drug, a composite image can be generated in which the inscription of the drug is easy to see. can be used for

<学習データ作成装置の第2実施形態>
図11は、図1に示した学習データ作成装置10Aの第2実施形態の要部を示す図であり、特に照明光源に関して示している。
<Second Embodiment of Learning Data Creation Device>
FIG. 11 is a diagram showing the main part of the second embodiment of the learning data creation device 10A shown in FIG. 1, and particularly shows the illumination light source.

図11に示す照明光源60は、薬剤Tの周囲の配置された複数の照明光源60A,60B,60Cから構成されており、複数の照明光源60A,60B,60Cは、それぞれ波長帯域が異なる光を、3方向から薬剤Tに照射する。本例では、照明光源60A,60B,60Cは、それぞれ波長帯域λaの赤色(R)、波長帯域λbの緑色(G)、及び波長帯域λcの青色(B)の光を発光するものとする。 The illumination light source 60 shown in FIG. 11 is composed of a plurality of illumination light sources 60A, 60B, and 60C arranged around the drug T, and the plurality of illumination light sources 60A, 60B, and 60C each emit light with different wavelength bands. , to irradiate the drug T from three directions. In this example, the illumination light sources 60A, 60B, and 60C respectively emit red (R) light in the wavelength band λa, green (G) light in the wavelength band λb, and blue (B) light in the wavelength band λc.

また、図示しないカメラ部は、波長帯域が異なる複数の光(RGBの光)にそれぞれ感度を有する複数種類の画素を備えた公知のカラーイメージセンサを有する。カラーイメージセンサの複数種類の画素(R画素、G画素、B画素)には、それぞれRGBのカラーフィルタが設けられており、R画素、G画素、B画素は、図12に示すようにそれぞれ波長帯域λa、λb、λcに対応する感度を有している。 Also, the camera section (not shown) has a known color image sensor having a plurality of types of pixels each having sensitivity to a plurality of lights (RGB lights) having different wavelength bands. A plurality of types of pixels (R pixels, G pixels, and B pixels) of the color image sensor are provided with RGB color filters, respectively. It has sensitivities corresponding to the bands λa, λb, and λc.

第2実施形態において、被写体(薬剤T)を撮影する場合、複数の照明光源60A,60B,60Cを同時に点灯して薬剤TにRGBの光を照射する。 In the second embodiment, when photographing a subject (medicine T), a plurality of illumination light sources 60A, 60B, and 60C are simultaneously turned on to irradiate the drug T with RGB light.

薬剤Tの第1画像を取得する第1撮影方法は、照明光源60A,60B,60Cにより照明された薬剤Tを、カラーイメージセンサを備えたカメラ部により撮影し、薬剤Tのカラー画像(第1画像)を取得する。 A first photographing method for obtaining a first image of the drug T is to photograph the drug T illuminated by the illumination light sources 60A, 60B, and 60C with a camera unit equipped with a color image sensor, and obtain a color image of the drug T (first image).

薬剤Tの第2画像を取得する第2撮影方法は、第1撮影方法と同様に照明光源60A,60B,60Cにより照明された薬剤Tを、カラーイメージセンサを備えたカメラ部により撮影し、複数種類の画素(RGB画素)に対応して複数の画像(R画像、G画像、B画像)を取得する。そして、第2画像取得部は、R画像、G画像、B画像をそれぞれ画像処理して第2画像を取得する。 A second imaging method for obtaining a second image of the drug T is to photograph the drug T illuminated by the illumination light sources 60A, 60B, and 60C by a camera unit equipped with a color image sensor in the same manner as the first imaging method. A plurality of images (R image, G image, B image) are obtained corresponding to the types of pixels (RGB pixels). Then, the second image acquiring section performs image processing on each of the R image, the G image, and the B image to acquire the second image.

R画像、G画像、B画像に対する画像処理は、照明光源60A,60B,60CのR、G、B光の照明方向に応じたエッジ抽出フィルタを使用して3枚のエッジ画像を生成し、3枚のエッジ画像を合成した合成画像を第2画像として生成する。 Image processing for the R, G, and B images uses edge extraction filters corresponding to the illumination directions of the R, G, and B lights of the illumination light sources 60A, 60B, and 60C to generate three edge images. A synthesized image obtained by synthesizing the edge images is generated as a second image.

第2実施形態によれば、1回の撮影により組を構成する第1画像と第2画像を取得することができる。 According to the second embodiment, it is possible to acquire the first image and the second image that form a set by one shot.

<学習データ作成装置の第3実施形態>
図13は、図1に示した学習データ作成装置10Aの第3実施形態の要部を示す図であり、特に第2画像取得部に関して示している。
<Third Embodiment of Learning Data Creation Device>
FIG. 13 is a diagram showing the main part of the third embodiment of the learning data creation device 10A shown in FIG. 1, and particularly shows the second image acquisition part.

図13に示す第2画像取得部20Bは、被写体の第2画像27を取得する部分であり、3次元測定器70及び画像処理部72から構成されている。尚、被写体の第1画像を取得する第1画像取得部20Aは、例えば、第1実施形態又は第2実施形態のものを使用することができる。 The second image acquiring section 20B shown in FIG. 13 is a section that acquires the second image 27 of the subject, and is composed of the three-dimensional measuring device 70 and the image processing section 72. As shown in FIG. Note that the first image acquisition unit 20A that acquires the first image of the subject can use, for example, that of the first embodiment or the second embodiment.

図13に示す3次元測定器(3次元情報取得部)70は、立体形状を有する被写体(薬剤)の3次元情報を取得する。3次元測定器70は、レーザ光を走査して薬剤の3次元情報を取得するもの、ステレオカメラにより薬剤の3次元情報を取得するものなどが考えられる。 A three-dimensional measuring device (three-dimensional information acquisition unit) 70 shown in FIG. 13 acquires three-dimensional information of a subject (medicine) having a three-dimensional shape. The three-dimensional measuring device 70 may be one that scans a laser beam to obtain three-dimensional information on a drug, one that obtains three-dimensional information on a drug by a stereo camera, or the like.

画像処理部72は、3次元測定器70により取得された薬剤の3次元情報に基づいて薬剤の刻印を抽出し、薬剤の刻印を強調した画像を生成し、生成した画像を第2画像27として出力する。 The image processing unit 72 extracts the marking of the medicine based on the three-dimensional information of the medicine acquired by the three-dimensional measuring device 70, generates an image emphasizing the marking of the medicine, and uses the generated image as the second image 27. Output.

<学習データ作成装置の第4実施形態>
第4実施形態の第1画像取得部及び第2画像取得部は、それぞれ撮影方法が異なる撮影モダリティを使用して同一の被写体を撮影し、第1画像と第2画像の1組を取得する。
<Fourth Embodiment of Learning Data Creation Device>
The first image acquisition unit and the second image acquisition unit of the fourth embodiment capture images of the same subject using imaging modalities with different imaging methods, and acquire a set of first and second images.

撮影方法が異なる撮影モダリティとしては、CT(Computed Tomography)装置、MRI(Magnetic Resonance Imaging)装置が考えられる。 A CT (Computed Tomography) apparatus and an MRI (Magnetic Resonance Imaging) apparatus are conceivable as imaging modalities that use different imaging methods.

MRI装置は、被写体のボリュームデータを取得することができる。また、CT装置は、所定のピッチで複数枚のCT画像が撮影され、複数枚のCT画像を積層したボリュームデータとして取得することができる。 An MRI apparatus can acquire volume data of a subject. In addition, the CT apparatus captures a plurality of CT images at a predetermined pitch, and can obtain volume data in which the plurality of CT images are stacked.

したがって、CT装置及びMRI装置により同じ被写体を撮影して得た各ボリュームデータの同じ断面位置の画像を、それぞれ第1画像と第2画像とすることができる。 Therefore, images at the same cross-sectional position of each volume data obtained by photographing the same subject by the CT apparatus and the MRI apparatus can be used as the first image and the second image, respectively.

尚、CT装置により取得した画像を第1画像、MRI装置により取得した画像を第2画像としてもよいし、MRI装置により取得した画像を第1画像、CT装置により取得した画像を第2画像としてもよい。 The image obtained by the CT apparatus may be the first image and the image obtained by the MRI apparatus may be the second image, or the image obtained by the MRI apparatus may be the first image and the image obtained by the CT apparatus may be the second image. good too.

<機械学習方法>
図14は、本発明に係る機械学習方法の実施形態を示すフローチャートである。
<Machine learning method>
FIG. 14 is a flow chart illustrating an embodiment of a machine learning method according to the invention.

尚、図14に示す機械学習方法は、第1実施形態の学習データ作成装置における学習データ作成方法を含む機械学習方法における処理内容を示している。 Note that the machine learning method shown in FIG. 14 shows the processing contents of the machine learning method including the learning data creation method in the learning data creation device of the first embodiment.

図14において、図2に示す制御部26は、照明光源24の全ての照明光源24F,24B,24R,24Lを同時に点灯させ(ステップS10)、全方向から照明された被写体(薬剤)をカメラ部22Aにより撮影させる。これにより、カメラ部22A、照明光源24、及び制御部26を有する画像取得部20のうちの第1画像取得部20Aは、第1画像25を取得する(ステップS12)。 14, the control unit 26 shown in FIG. 2 turns on all the illumination light sources 24F, 24B, 24R, and 24L of the illumination light source 24 at the same time (step S10), and the subject (medicine) illuminated from all directions is viewed by the camera unit. 22A. Thereby, the first image acquisition section 20A of the image acquisition section 20 having the camera section 22A, the illumination light source 24, and the control section 26 acquires the first image 25 (step S12).

続いて、制御部26は、照明光源24Fのみを点灯させ(ステップS14)、照明光源24Fにより照明された薬剤をカメラ部22Aにより撮影させて薬剤の画像Gを取得する(ステップS16)。 Subsequently, the control unit 26 turns on only the illumination light source 24F (step S14), causes the camera unit 22A to photograph the drug illuminated by the illumination light source 24F, and acquires an image GF of the drug (step S16).

制御部26は、ステップS16、S18と同様にして、照明光源24B,24R,24Lを順次点灯し、順次点灯に同期してカメラ部22Aにより薬剤を撮影させ、薬剤の画像G,G,Gを取得する(ステップS20~S28)。 Similarly to steps S16 and S18, the control unit 26 sequentially turns on the illumination light sources 24B , 24R, and 24L, causes the camera unit 22A to photograph the drug in synchronization with the sequential lighting, and produces images GB, GR , . GL is acquired (steps S20 to S28).

続いて、エッジ画像生成部34は、ステップS16、S20,S24,S28でそれぞれ取得した4枚の画像G,G,G,及びGに対し、それぞれ対応するソーベルフィルタを適用して4枚のエッジ画像を生成し、生成した4枚のエッジ画像を合成したエッジ画像を第2画像27として取得する(ステップS30)。この第2画像27は、薬剤に付加された刻印又は印字を強調した画像である。 Subsequently, the edge image generator 34 applies the corresponding Sobel filters to the four images GF , GB , GR , and GL obtained in steps S16, S20, S24, and S28, respectively. 4 edge images are generated by using the edge images, and an edge image obtained by synthesizing the generated 4 edge images is obtained as the second image 27 (step S30). This second image 27 is an image in which the stamp or print added to the medicine is emphasized.

記憶制御部40は、ステップS12で取得した第1画像25と、ステップS30で取得した第2画像27とを組とし、記憶部42に記憶させる(ステップS32)。 The storage control unit 40 sets the first image 25 obtained in step S12 and the second image 27 obtained in step S30 as a set, and stores the set in the storage unit 42 (step S32).

上記のステップS10~S32は、薬剤の上方のカメラ部22Aで薬剤を撮影した複数枚の画像に基づいて第1画像25、第2画像27の組を取得して記憶部42に記憶させるが、薬剤の下方のカメラ部22Bでも薬剤を撮影し、同様に第1画像25、第2画像27の組を取得して記憶部42に記憶させる。また、上記のステップS10~S32の処理は、種類の異なる他の薬剤(複数の薬剤)に対しても行われ、その結果、複数の薬剤に対応する第1画像25、第2画像27の複数組が記憶部42に記憶されることになる。 In the steps S10 to S32 described above, a set of the first image 25 and the second image 27 is acquired based on a plurality of images of the drug taken by the camera section 22A above the drug and stored in the storage section 42. The camera section 22</b>B below the drug also photographs the drug, similarly acquires a set of the first image 25 and the second image 27 and stores it in the storage section 42 . Further, the processing of steps S10 to S32 described above is also performed for other drugs (a plurality of drugs) of different types, and as a result, a plurality of first images 25 and second images 27 corresponding to the plurality of drugs are displayed. A set is stored in the storage unit 42 .

学習器50を機械学習させる局面では、学習制御部52は、学習データ作成方法により作成され、記憶部42に記憶された学習データセットを使用し、学習器50を機械学習させる(ステップS34)。 When the learning device 50 undergoes machine learning, the learning control unit 52 uses the learning data set created by the learning data creation method and stored in the storage unit 42 to cause the learning device 50 to undergo machine learning (step S34).

[その他]
本発明は、本実施形態の機械学習装置及び方法に限らず、機械学習装置及び方法に含まれる学習データ作成装置及び方法も含むことは言うまでもない。
[others]
It goes without saying that the present invention is not limited to the machine learning device and method of this embodiment, but also includes a learning data creation device and method included in the machine learning device and method.

また、学習データ作成装置により作成された学習データは記憶部に保存されるが、記憶部に保存される学習データは、本発明以外の方法で作成された第1画像と第2画像の組を含んでいてもよい。 The learning data created by the learning data creation device is stored in the storage unit. may contain.

更に、本発明は上述した実施形態に限定されず、本発明の精神を逸脱しない範囲で種々の変形が可能であることは言うまでもない。 Furthermore, the present invention is not limited to the embodiments described above, and it goes without saying that various modifications are possible without departing from the spirit of the present invention.

10 機械学習装置
10A 学習データ作成装置
20 画像取得部
20A 第1画像取得部
20B 第2画像取得部
21 ステージ
22 カメラ部
22A カメラ部
22B カメラ部
24、24B、24F、24L、24R 照明光源
25 第1画像
26 制御部
27 第2画像
30 画像処理部
32 画像切り出し部
34 エッジ画像生成部
40 記憶制御部
42 記憶部
50 学習器
52 学習制御部
60、60A、60B、60C 照明光源
70 3次元測定器
72 画像処理部
、F ソーベルフィルタ
、G、G、G、G 画像
、L 照明光
PA 撮影光軸
PB 薬包帯
S 刻印
S10~S34 ステップ
T 薬剤
TP 分包袋
λa、λb、λc 波長帯域
10 Machine learning device 10A Learning data creation device 20 Image acquisition unit 20A First image acquisition unit 20B Second image acquisition unit 21 Stage 22 Camera unit 22A Camera unit 22B Camera units 24, 24B, 24F, 24L, 24R Illumination light source 25 First Image 26 Control unit 27 Second image 30 Image processing unit 32 Image clipping unit 34 Edge image generation unit 40 Memory control unit 42 Storage unit 50 Learning device 52 Learning control unit 60, 60A, 60B, 60C Illumination light source 70 Three-dimensional measuring device 72 Image processing unit FB, FF Sobel filter GA , GB, GF , GL , GR Image LB , LF F illumination light PA Photographing optical axis PB Medicine bandage S Engraving S10 to S34 Step T Medicine TP Minutes Wrapper λa, λb, λc Wavelength band

Claims (13)

刻印又は印字が付加された薬剤を第1撮影方法で撮影して第1画像を取得する第1画像取得部と、
前記薬剤を前記第1撮影方法とは異なる第2撮影方法で撮影して第2画像を取得する第2画像取得部と、
前記第1画像と前記第2画像とを組とし、前記組を学習器の学習データとして記憶部に記憶させる記憶制御部と、を備え、
前記第2画像取得部は、前記第2撮影方法で撮影された複数の画像であって、前記薬剤への照明の入射方向が異なる複数の画像から、前記薬剤に付加された刻印又は印字が強調された前記第2画像を生成する画像処理部を含み、
前記記憶制御部は、前記第1画像を前記学習器の入力データとし、前記第2画像を前記学習器の正解データとして前記記憶部に記憶させる、
習データ作成装置。
a first image obtaining unit that obtains a first image by photographing a medicine to which a stamp or print is added using a first photographing method;
a second image acquisition unit configured to acquire a second image by capturing an image of the drug using a second image capturing method different from the first image capturing method;
a storage control unit that sets the first image and the second image and stores the set in a storage unit as learning data for a learning device;
The second image acquisition unit emphasizes the engraving or printing added to the drug from a plurality of images captured by the second imaging method, in which directions of illumination to the drug are different. an image processing unit that generates the second image obtained by
The memory control unit stores the first image as input data for the learning device and the second image as correct data for the learning device in the storage unit.
Learning data creation device.
前記画像処理部は、前記複数の画像から前記薬剤に付加された刻印又は印字が強調された複数のエッジ画像を生成し、前記生成した前記複数のエッジ画像を合成した合成画像を前記第2画像として生成する、請求項に記載の学習データ作成装置。 The image processing unit generates, from the plurality of images, a plurality of edge images in which stamps or prints added to the medicine are emphasized, and generates a synthesized image obtained by synthesizing the generated plurality of edge images as the second image. 2. The learning data creation device according to claim 1 , wherein the learning data creation device generates as 前記画像処理部は、前記複数の画像を入力画像とし、前記薬剤に付加された刻印又は印字が強調された画像を認識結果として出力する学習済み認識器を含み、前記複数の画像を前記認識器に入力し、前記認識器の認識結果を前記第2画像として生成する、請求項に記載の学習データ作成装置。 The image processing unit includes a trained recognizer that uses the plurality of images as input images and outputs an image in which the stamp or print added to the medicine is emphasized as a recognition result, and the plurality of images are processed by the recognizer. 2. The learning data creation device according to claim 1 , wherein the recognition result of said recognizer is input to said second image. 前記第1撮影方法と前記第2撮影方法とは、前記薬剤に対する照明方法が異なる請求項に記載の学習データ作成装置。 2. The learning data creation device according to claim 1 , wherein the first imaging method and the second imaging method use different lighting methods for the drug . 前記第1撮影方法の照明方法は、前記薬剤に対して全方向から光を入射させ、
前記第2撮影方法の照明方法は、前記薬剤に対する入射方向が異なる複数の光を順次入射させる請求項に記載の学習データ作成装置。
The illumination method of the first imaging method includes making light incident on the drug from all directions,
5. The learning data creation apparatus according to claim 4 , wherein the illumination method of the second imaging method sequentially causes a plurality of lights having different incident directions with respect to the drug .
前記第1画像取得部及び前記第2画像取得部は、前記薬剤の周囲の配置された複数の照明光源と、前記複数の照明光源の点灯を制御する照明制御部とを含み、
前記照明制御部は、前記第1撮影方法の照明方法として前記複数の照明光源を同時に点灯させ、前記第2撮影方法の照明方法として前記複数の照明光源を順次点灯させる請求項に記載の学習データ作成装置。
The first image acquisition unit and the second image acquisition unit include a plurality of illumination light sources arranged around the drug , and an illumination control unit that controls lighting of the plurality of illumination light sources,
6. The learning according to claim 5 , wherein the illumination control unit simultaneously turns on the plurality of illumination light sources as the illumination method for the first photographing method, and sequentially lights the plurality of illumination light sources as the illumination method for the second photographing method. Data production device.
前記複数の照明光源は、前記薬剤の前方、後方、右方及び左方のうち少なくとも2箇所に配置されたものである請求項に記載の学習データ作成装置。 7. The learning data creation device according to claim 6 , wherein the plurality of illumination light sources are arranged at least two of front, rear, right and left sides of the drug . 前記第1画像取得部及び前記第2画像取得部は、前記薬剤を撮影するカメラ部と、前記カメラ部を制御するカメラ制御部と、画像処理部とを含み、
前記カメラ制御部は、前記第1撮影方法の照明方法により前記薬剤が照明されると、前記カメラ部により前記薬剤を撮影させ、前記第2撮影方法の照明方法により前記薬剤が順次照明されると、前記順次照明される毎に前記薬剤を撮影させ、
前記画像処理部は、前記順次照明される毎に前記カメラ部により撮影された複数の画像を画像処理して前記第2画像を生成する請求項からのいずれか1項に記載の学習データ作成装置。
The first image acquisition unit and the second image acquisition unit include a camera unit that captures the drug , a camera control unit that controls the camera unit, and an image processing unit,
The camera control unit causes the camera unit to photograph the medicine when the medicine is illuminated by the illumination method of the first imaging method, and sequentially illuminates the medicine by the illumination method of the second imaging method. , causing the drug to be photographed each time the sequential illumination is performed;
The learning data according to any one of claims 5 to 7 , wherein the image processing unit processes a plurality of images captured by the camera unit each time the illumination is performed sequentially to generate the second image. creation device.
前記第1画像取得部及び前記第2画像取得部は、前記薬剤の周囲の配置された複数の照明光源であって、それぞれ波長帯域が異なる複数の光を前記薬剤に照射する複数の照明光源と、前記波長帯域が異なる複数の光にそれぞれ感度を有する複数種類の画素を備えたカメラ部とを含み、
前記第1画像取得部は、前記複数の照明光源により照明された前記薬剤を前記カメラ部により撮影して前記第1画像を取得し、
前記第2画像取得部は、前記複数の照明光源により照明された前記薬剤を前記カメラ部により撮影し、前記複数種類の画素に対応して複数の画像を取得する、
求項に記載の学習データ作成装置。
The first image acquisition unit and the second image acquisition unit are a plurality of illumination light sources arranged around the drug , and a plurality of illumination light sources for irradiating the drug with a plurality of lights having different wavelength bands. , a camera unit comprising a plurality of types of pixels each having sensitivity to a plurality of lights with different wavelength bands,
The first image acquisition unit captures the drug illuminated by the plurality of illumination light sources with the camera unit to acquire the first image,
The second image acquisition unit captures the drug illuminated by the plurality of illumination light sources with the camera unit, and acquires a plurality of images corresponding to the plurality of types of pixels.
The learning data creation device according to claim 1 .
刻印が付加された薬剤を第1撮影方法で撮影して第1画像を取得する第1画像取得部と、
前記薬剤を前記第1撮影方法とは異なる第2撮影方法で撮影して第2画像を取得する第2画像取得部と、
前記第1画像と前記第2画像とを組とし、前記組を学習器の学習データとして記憶部に記憶させる記憶制御部と、を備え、
前記第2画像取得部は、前記薬剤の3次元情報を取得する3次元情報取得部と、画像処理部とを含み、
前記画像処理部は、前記3次元情報取得部により取得された前記薬剤の3次元情報に基づいて前記薬剤の刻印を抽出し、前記薬剤の刻印を強調した前記第2画像を生成し、
前記記憶制御部は、前記第1画像を前記学習器の入力データとし、前記第2画像を前記学習器の正解データとして前記記憶部に記憶させる、
学習データ作成装置。
a first image obtaining unit that obtains a first image by photographing the medicine to which the stamp is added using a first photographing method;
a second image acquisition unit configured to acquire a second image by capturing an image of the drug using a second image capturing method different from the first image capturing method;
a storage control unit that sets the first image and the second image and stores the set in a storage unit as learning data for a learning device;
The second image acquisition unit includes a three-dimensional information acquisition unit that acquires three-dimensional information of the drug , and an image processing unit,
The image processing unit extracts the stamp of the drug based on the three-dimensional information of the drug acquired by the three-dimensional information acquisition unit, and generates the second image in which the stamp of the drug is emphasized ,
The memory control unit stores the first image as input data for the learning device and the second image as correct data for the learning device in the storage unit.
Learning data creation device.
学習器と、
請求項1から10のいずれか1項に記載の学習データ作成装置の前記記憶部に記憶された学習データを使用し、前記組を構成する第1画像を前記学習器を機械学習させる場合の入力画像とし、前記組を構成する第2画像を正解データとして前記学習器を機械学習させる学習制御部と、
を備えた機械学習装置。
a learner;
11. Input when the learning data stored in the storage unit of the learning data creation device according to any one of claims 1 to 10 is used, and the first image constituting the set is machine-learned by the learning device a learning control unit that causes the learner to perform machine learning using a second image that constitutes the set as an image, and a second image that constitutes the set as correct data;
A machine learning device with
第1画像取得部が、刻印又は印字が付加された薬剤を第1撮影方法で撮影して第1画像を取得するステップと、
第2画像取得部が、前記薬剤を前記第1撮影方法とは異なる第2撮影方法で撮影して第2画像を取得するステップと、
記憶制御部が、前記第1画像と前記第2画像とを組とし、前記組を学習器の学習データとして記憶部に記憶させるステップと、を含み、
前記第2画像を取得するステップは、前記第2撮影方法で撮影された複数の画像であって、前記薬剤への照明の入射方向が異なる複数の画像から、前記薬剤に付加された刻印又は印字が強調された前記第2画像を生成し、
前記記憶部に記憶させるステップは、前記第1画像を前記学習器の入力データとし、前記第2画像を前記学習器の正解データとして前記記憶部に記憶させる、
習データ作成方法。
a step in which the first image acquisition unit acquires a first image by photographing the medicine to which a stamp or print is added using a first photographing method;
a step in which a second image obtaining unit obtains a second image by photographing the medicine with a second photographing method different from the first photographing method;
a step in which the memory control unit sets the first image and the second image as a set and stores the set in a storage unit as learning data for a learning device;
The step of acquiring the second image includes a plurality of images photographed by the second photographing method, wherein a plurality of images in which the direction of incidence of illumination on the medicine differs, and a stamp or print added to the medicine. generating the second image in which the
The step of storing in the storage unit stores the first image as input data for the learning device and the second image as correct data for the learning device in the storage unit.
How to create learning data.
学習制御部が、請求項12に記載の学習データ作成方法により作成され、前記記憶部に記憶された学習データを使用し、前記組を構成する第1画像を学習器を機械学習させる場合の入力画像とし、前記組を構成する第2画像を正解データとして学習器を機械学習させるステップを含む機械学習方法。 The learning control unit uses the learning data created by the learning data creation method according to claim 12 and stored in the storage unit, and the input when the learning device performs machine learning on the first images that make up the set. A machine learning method comprising the step of causing a learner to perform machine learning using the second images constituting the set as correct data.
JP2019154362A 2019-08-27 2019-08-27 LEARNING DATA CREATION DEVICE AND METHOD, AND MACHINE LEARNING DEVICE AND METHOD Active JP7170602B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019154362A JP7170602B2 (en) 2019-08-27 2019-08-27 LEARNING DATA CREATION DEVICE AND METHOD, AND MACHINE LEARNING DEVICE AND METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019154362A JP7170602B2 (en) 2019-08-27 2019-08-27 LEARNING DATA CREATION DEVICE AND METHOD, AND MACHINE LEARNING DEVICE AND METHOD

Publications (2)

Publication Number Publication Date
JP2021033737A JP2021033737A (en) 2021-03-01
JP7170602B2 true JP7170602B2 (en) 2022-11-14

Family

ID=74676550

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019154362A Active JP7170602B2 (en) 2019-08-27 2019-08-27 LEARNING DATA CREATION DEVICE AND METHOD, AND MACHINE LEARNING DEVICE AND METHOD

Country Status (1)

Country Link
JP (1) JP7170602B2 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015068765A (en) 2013-09-30 2015-04-13 富士フイルム株式会社 Drug recognition apparatus and method
JP2015215330A (en) 2014-04-25 2015-12-03 パナソニックIpマネジメント株式会社 Image forming apparatus and image forming method
JP2015232477A (en) 2014-06-09 2015-12-24 株式会社キーエンス Inspection device, inspection method, and program
JP2018027242A (en) 2016-08-18 2018-02-22 安川情報システム株式会社 Tablet detection method, tablet detection device, and table detection program
WO2018048507A1 (en) 2016-09-06 2018-03-15 Han Xiao Neural network for generating synthetic medical images
WO2019044439A1 (en) 2017-08-31 2019-03-07 富士フイルム株式会社 Medicine inspection device, image processing device, image processing method, and program
JP2019121252A (en) 2018-01-10 2019-07-22 キヤノン株式会社 Image processing method, image processing apparatus, image processing program and storage medium
JP2020162802A (en) 2019-03-29 2020-10-08 ゼネラル・エレクトリック・カンパニイ Ultrasonic device and control program thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015068765A (en) 2013-09-30 2015-04-13 富士フイルム株式会社 Drug recognition apparatus and method
JP2015215330A (en) 2014-04-25 2015-12-03 パナソニックIpマネジメント株式会社 Image forming apparatus and image forming method
JP2015232477A (en) 2014-06-09 2015-12-24 株式会社キーエンス Inspection device, inspection method, and program
JP2018027242A (en) 2016-08-18 2018-02-22 安川情報システム株式会社 Tablet detection method, tablet detection device, and table detection program
WO2018048507A1 (en) 2016-09-06 2018-03-15 Han Xiao Neural network for generating synthetic medical images
WO2019044439A1 (en) 2017-08-31 2019-03-07 富士フイルム株式会社 Medicine inspection device, image processing device, image processing method, and program
JP2019121252A (en) 2018-01-10 2019-07-22 キヤノン株式会社 Image processing method, image processing apparatus, image processing program and storage medium
JP2020162802A (en) 2019-03-29 2020-10-08 ゼネラル・エレクトリック・カンパニイ Ultrasonic device and control program thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
本田 崇幸 他,近赤外フラッシュを伴うRGB/NIR単板撮像による低照度カラー画像の超解像,情報処理学会 研究報告 オーディオビジュアル複合情報処理(AVM) 2018-AVM-103 [online],日本,情報処理学会,2018年11月22日,CS2018-83, IE2018-62 (2018-11)

Also Published As

Publication number Publication date
JP2021033737A (en) 2021-03-01

Similar Documents

Publication Publication Date Title
JP6894977B2 (en) Drug test support device, drug test support method, drug identification device, drug identification method and program, recording medium
CN111052145B (en) Drug inspection support device, image processing device, and image processing method
JP2011077764A (en) Multidimensional image processing device, multidimensional image photographing system, multidimensional image printed matter and multidimensional image processing method
KR20160147980A (en) Systems, methods, apparatuses, and computer-readable storage media for collecting color information about an object undergoing a 3d scan
JP2008073158A (en) Image processor
JPWO2019039302A1 (en) Drug inspection support device, image processing device, image processing method, and program
JP2016015093A (en) Tablet identifying apparatus and method thereof, and packaged tablet monitoring apparatus
JPWO2020080045A5 (en)
WO2019044439A1 (en) Medicine inspection device, image processing device, image processing method, and program
JP2009164951A (en) Imaging system, image processor, imaging processing method, and program
JP7170602B2 (en) LEARNING DATA CREATION DEVICE AND METHOD, AND MACHINE LEARNING DEVICE AND METHOD
ES2616531T3 (en) Procedure for verifying the result of printing on rotary printing machines
JP2001216518A (en) Method and device for matching and recording medium
KR20180114293A (en) Method Comparing The Forged Sealing
JP2008017386A (en) Key image generation device
JP2010281778A (en) Three-dimensional shape measuring device
JPWO2020105395A1 (en) Drug identification device, drug identification method and drug identification program
WO2021182345A1 (en) Training data creating device, method, program, training data, and machine learning device
WO2023134304A1 (en) Optical information collection apparatus and optical information collection method
JP5280996B2 (en) Seal stamp direct reader and seal data creation method
JP6861825B2 (en) Drug identification device, image processing device, image processing method and program
JP6269816B2 (en) POS terminal, information processing apparatus, white balance adjustment method and program
JP7338030B2 (en) Object recognition device, method and program
JP2009164949A (en) Image processor, image processing method, and program
JP2014157518A (en) Three-dimensional data generation method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210721

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220727

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220804

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220930

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221101

R150 Certificate of patent or registration of utility model

Ref document number: 7170602

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150