JP2879129B2 - Article identification system and method - Google Patents
Article identification system and methodInfo
- Publication number
- JP2879129B2 JP2879129B2 JP6069068A JP6906894A JP2879129B2 JP 2879129 B2 JP2879129 B2 JP 2879129B2 JP 6069068 A JP6069068 A JP 6069068A JP 6906894 A JP6906894 A JP 6906894A JP 2879129 B2 JP2879129 B2 JP 2879129B2
- Authority
- JP
- Japan
- Prior art keywords
- article
- input
- image
- category
- articles
- 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.)
- Expired - Fee Related
Links
Landscapes
- Image Analysis (AREA)
- Medical Preparation Storing Or Oral Administration Devices (AREA)
- Image Processing (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、画像処理・識別技術を
用いて物品の同定を行う物品同定システムに関わり、特
に、医薬品の錠剤やカプセル剤(以下、単に錠剤とい
う)の自動包装機において、入力された名柄に対し選別
された錠剤が正しいかどうかを検査するための錠剤同定
に好適な物品同定システムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an article identification system for identifying an article by using image processing and identification technology, and more particularly to an automatic packaging machine for pharmaceutical tablets and capsules (hereinafter simply referred to as tablets). The present invention relates to an article identification system suitable for tablet identification for inspecting whether or not a tablet selected for an input name is correct.
【0002】[0002]
【従来の技術】現在、多くの総合病院で、指定した銘柄
の複数の錠剤を自動的に分包紙内に包装する自動錠剤包
装機が用いられている。自動錠剤包装機においては、オ
ペレータが端末から入力した複数の錠剤銘柄情報を受け
て、装置内のダブレットケースから該当する錠剤を搬送
し、同一の分包紙内に包装する処理を行っている。一般
的な自動錠剤包装機については、例えば、「清野 敏
一、折井 孝男他:調剤業務への電算機の利用−自動調
剤包装機への監査システムの試み、第8回医療情報連合
大会論文集、565−568、1988」において論じ
られている。2. Description of the Related Art At present, many general hospitals use an automatic tablet packaging machine for automatically packaging a plurality of tablets of a specified brand in a packaging paper. In an automatic tablet packaging machine, a plurality of tablet brand information input by an operator from a terminal is received, and a corresponding tablet is transported from a doublet case in the apparatus and packed in the same packaging paper. For general automatic tablet packaging machines, see, for example, “Toshikazu Kiyono, Takao Orii, et al .: Use of Computers in Dispensing Operations-An Attempt of an Audit System for Automatic Dispensing Packaging Machines”, Proceedings of the 8th Medical Information Association Conference , 565-568, 1988 ".
【0003】このような自動錠剤包装機を用いた薬剤シ
ステムを病院に導入することで、これまでの薬剤師の手
を介して行われていた錠剤の包装が自動化され、大幅な
待ち時間の短縮が可能となり、医療の高品質化を図るこ
とができる。[0003] By introducing a drug system using such an automatic tablet packaging machine into a hospital, tablet packaging, which has been performed through the hands of a pharmacist, can be automated, and the waiting time can be greatly reduced. This makes it possible to improve the quality of medical treatment.
【0004】[0004]
【発明が解決しようとする課題】上記自動錠剤包装機で
は、タブレットケースから指定された錠剤を取り出す処
理、及び、取り出した錠剤を包装する位置まで搬送する
処理に機械的な動作を含む。そのため、錠剤の取り出し
誤りや欠損が起こる可能性がある。また、タブレットケ
ースへの錠剤の補給は人間が行うが、その際に補給すべ
き銘柄を間違う可能性もある。しかし、このような機械
的又は人為的誤りがあったとしても、最終的に患者に提
供される分包中には、指定された名柄の錠剤が間違いな
く入っている必要がある。そのため、従来自動錠剤包装
機を運用する際には、包装後の錠剤が指定された銘柄か
どうか、薬剤師が目視で同定検査を行っていた。In the above automatic tablet packaging machine, a mechanical operation is included in a process of taking out a specified tablet from a tablet case and a process of transporting the taken tablet to a packaging position. For this reason, there is a possibility that a wrong ejection or loss of the tablet may occur. In addition, although tablets are supplied to the tablet case by a human, there is a possibility that the brand to be supplied at this time may be wrong. However, even if there is such a mechanical or artificial error, it is necessary that the tablet of the designated name is definitely contained in the package finally provided to the patient. For this reason, when operating a conventional automatic tablet packaging machine, a pharmacist has performed a visual identification test to determine whether or not the packaged tablet is a designated brand.
【0005】そのため、同定検査の手間が面倒であり、
検査に時間がかかるという問題があった。また、包装後
に検査するため、間違った錠剤の包装が発見された場合
には、その包装を破り、再度正しい錠剤の包装を作らな
ければならない、という面倒があった。[0005] Therefore, the trouble of the identification test is troublesome,
There is a problem that the inspection takes time. In addition, since inspection is performed after packaging, if an incorrect tablet package is found, it is necessary to break the package and make a correct tablet package again.
【0006】従って、本発明の目的は、自動錠剤包装機
の運用において、選別された錠剤が指定された銘柄と一
致するかどうかを自動的に判定し、それにより、自動錠
剤包装機から常に指定通りの錠剤の入った正しい包装が
出てくるようにすることにある。Accordingly, an object of the present invention is to automatically determine whether or not a selected tablet matches a specified brand in the operation of an automatic tablet packaging machine, and thereby always specify the selected tablet from the automatic tablet packaging machine. The aim is to ensure that the correct packaging with street pills comes out.
【0007】また、より一般化された本発明の目的は、
多カテゴリーの物品群中から指定されたカテゴリーの物
品を選別するような用途において、選別された物品が指
定されたカテゴリーのものであるか否かを確認するため
の同定検査を、画像処理・識別技術を用いて自動的且つ
正確に行えるようにすることにある。[0007] A more generalized object of the present invention is:
In applications where items of a specified category are selected from a group of multi-category items, identification processing for confirming whether the selected items are of a specified category is performed by image processing and identification. The purpose of the present invention is to enable automatic and accurate operation using technology.
【0008】更に、本発明の別の目的は、物品同定検査
を画像処理・識別技術を用いて行うに当り、複数の物品
を同時に含んだ画像が入力された場合でも、それら物品
の各々を確実に同定できるようにすることにある。Further, another object of the present invention is to perform an article identification test using image processing and identification techniques, and to ensure that each of the articles is input even if an image containing a plurality of articles is input at the same time. In order to be able to be identified.
【0009】[0009]
【課題を解決するための手段】本発明の物品同定システ
ムは、複数の物品の画像を入力する画像入力手段と、前
記複数物品に対応するか否かの判定の対象である複数の
カテゴリーを入力するカテゴリー入力手段と、入力され
た画像の全体中から各物品の画像を切出す物品画像切出
し手段と、切出された各物品画像の濃淡値ベクトルを特
徴ベクトルとして抽出する特徴抽出手段と、抽出した各
物品画像の特徴ベクトルと、予め用意した種々のカテゴ
リーの参照ベクトル中の前記入力された複数カテゴリー
の参照ベクトルとの間の距離を求め、この距離が予め定
めた許容値内にあるか否かにより、各物品が各入力カテ
ゴリーに対応するものか否かを判定する同定手段とを備
えることを特徴とする。According to the present invention, there is provided an article identification system comprising: image input means for inputting images of a plurality of articles; and a plurality of objects to be determined as to whether or not the articles correspond to the plurality of articles. > Category input means for inputting a category, article image extracting means for extracting an image of each article from the entire input image, and feature extraction for extracting a gray-scale value vector of each of the extracted article images as a feature vector Means and each extracted
A feature vector of an article image, various categories previously prepared
Obtains distances between the reference vector of the inputted plurality categories in Lee reference vectors, according to whether this distance is in the predetermined within tolerance, or not each item is corresponding to each input category And an identification means for determining whether or not the determination is made.
【0010】このシステムでは、更に、切出された各物
品画像から、各物品の簡易特徴を抽出する簡易特徴抽出
手段と、予め用意されている種々のカテゴリーの簡易特
徴中の入力カテゴリの各々に対応する簡易特徴と、各物
品の簡易特徴との間の距離を求め、この距離に基づい
て、各物品について同定を行なうべきカテゴリ候補を入
力カテゴリ中から選択するカテゴリ候補選択手段とを備
えることが望ましい。[0010] In this system, a simple feature extracting means for extracting simple features of each article from the extracted article images, and simple features of various categories prepared in advance.
A category in which a distance between the simple feature corresponding to each of the input categories in the collection and the simple feature of each article is obtained, and a category candidate to be identified for each article is selected from the input categories based on the distance. It is desirable to have candidate selection means.
【0011】[0011]
【作用】本発明においては、カメラ等で複数の物品(例
えば、錠剤)を撮影した画像とそれらの物品に対応する
か否かの判定の対象である複数のカテゴリー(例えば、
錠剤の銘柄)とがシステムに入力される。すると、画像
全体中から各物品の画像が切出され、各物品画像から各
物品の特徴ベクトルが抽出される。この特徴ベクトルに
は、画像内の濃淡値を要素とする濃淡値ベクトルが用い
られる。この特徴ベクトルと、予め用意した種々のカテ
ゴリーの参照ベクトルの内の上記入力した各カテゴリの
参照ベクトルとから両者の距離が求められ、この距離が
予め定めた許容値内にあるかどうかで、入力したカテゴ
リーと物品とが対応するかどうかが判定される。According to the present invention, images obtained by photographing a plurality of articles (for example, tablets) with a camera or the like and images corresponding to those articles are obtained.
Multiple categories (for example,
Tablet brand) is input to the system. Then, an image of each article is cut out from the entire image, and a feature vector of each article is extracted from each article image. As this feature vector, a grayscale value vector having grayscale values in an image as elements is used. A feature vector, various catheter previously prepared
The distance between the input categories and the reference vector of each category is obtained from the reference vector of Gory, and whether or not the input category corresponds to the article by determining whether or not the distance is within a predetermined allowable value. Is determined.
【0012】上記のような処理を行うことにより、物品
の同定検査を人の目視によらず、自動的に行うことが可
能になる。しかも、複数の物品の同定が一度に行なうこ
とができる。By performing the above-described processing, it is possible to automatically perform the identification inspection of the article without looking at the person. In addition, identification of a plurality of articles can be performed at once.
【0013】本システムにおいて、同定処理の前に、各
物品の簡易特徴を抽出して、これを頼りに各物品につい
て同定を行なうべきカテゴリ候補を選択するようにする
と、最終的な同定処理で行なう距離計算は、カテゴリ候
補についてだけ行なえば良くなるため、処理量が削減さ
れ処理が高速になる。また、簡易特徴として用いるパラ
メータを巧く選択することにより、高い同定精度も期待
できる。In this system, prior to the identification process, a simple feature of each article is extracted, and a category candidate to be identified for each article is selected based on the extracted feature. Since the distance calculation only needs to be performed for the category candidates, the processing amount is reduced and the processing speed is increased. In addition, a high identification accuracy can be expected by skillfully selecting parameters used as simple features.
【0014】[0014]
【実施例】以下、本発明の実施例を図面により詳細に説
明する。Embodiments of the present invention will be described below in detail with reference to the drawings.
【0015】図1は、本発明の一実施例に係る錠剤同定
システムの機能構成を示す。FIG. 1 shows a functional configuration of a tablet identification system according to one embodiment of the present invention.
【0016】この錠剤同定システムは、NTSCテレビ
カメラ1を外部機器として備えたコンピュータ100上
で動作する。コンピュータ100は、画像入力部10
1、名柄入力部102、逆γ補正部103、RGBグレ
イ変換部104、位置・向き補正部105、簡易特徴抽
出部106、簡易特徴学習部107、簡易特徴散布度算
出部108、簡易特徴ファイル109、同定対象切出し
部110、特徴抽出部111、特徴学習部112、辞書
ファイル112、特徴散布度算出部114、及び同定部
115を備える。The tablet identification system operates on a computer 100 having the NTSC television camera 1 as an external device. The computer 100 includes an image input unit 10
1. Name input unit 102, inverse γ correction unit 103, RGB gray conversion unit 104, position / direction correction unit 105, simple feature extraction unit 106, simple feature learning unit 107, simple feature scatter degree calculation unit 108, simple feature file 109, an identification target extraction unit 110, a feature extraction unit 111, a feature learning unit 112, a dictionary file 112, a feature dispersion degree calculation unit 114, and an identification unit 115.
【0017】本システムの動作は大きく学習フェーズと
同定フェーズに分けることができる。以下、(A)学習
フェーズと(B)同定フェーズに分けて、各部の機能及
び動作を説明する。The operation of the present system can be roughly divided into a learning phase and an identification phase. Hereinafter, the functions and operations of each unit will be described separately for the (A) learning phase and the (B) identification phase.
【0018】(A)学習フェーズ 本システムは、その運用に入る前の初期化または準備と
して、まず学習フェーズを経てなければならない。学習
フェーズにおいては、同定対象となる錠剤の各銘柄につ
いて、複数個のサンプルと正確な銘柄名とが入力され、
これに基づいて各銘柄の簡易特徴ベクトルとその散布
度、及び参照ベクトルとその散布度がそれぞれ計算さ
れ、それぞれ簡易特徴ファイル109及び辞書ファイル
113に保存される。以下、学習フェーズの処理を詳細
に説明する。(A) Learning Phase The system must first pass through a learning phase as initialization or preparation before starting operation. In the learning phase, for each brand of tablet to be identified, multiple samples and the exact brand name are entered,
Based on this, the simple feature vector of each brand and its scatter degree, and the reference vector and its scatter degree are calculated, respectively, and stored in the simple feature file 109 and the dictionary file 113, respectively. Hereinafter, the processing of the learning phase will be described in detail.
【0019】まず、NTSCテレビカメラ1の前に配置
された無地の黒い背景上に、一つの銘柄の錠剤が一個置
かれ、その錠剤をカメラ1で撮影したカラーアナログ画
像が画像入力部101に入力される。画像入力部101
は、このカラーアナログ画像をRGBディジタル画像に
変換する。First, one tablet of one brand is placed on a plain black background placed in front of the NTSC television camera 1, and a color analog image of the tablet taken by the camera 1 is input to the image input unit 101. Is done. Image input unit 101
Converts this color analog image into an RGB digital image.
【0020】この画像入力と並行して、銘柄入力部10
2により、画像入力した錠剤の正しい銘柄名がシステム
に入力される。In parallel with this image input, a brand input unit 10
By step 2, the correct brand name of the tablet whose image has been input is input to the system.
【0021】次に、逆γ補正部103が、RGBの各プ
レーンに施されたγ補正の影響を取り除き、カメラ1の
入出力特性が実質的に線形となるように、逆γ補正を行
う。この時、γの値として例えば2.2を用いる。これ
は、NTSCテレビカメラ1は通常、γ=2.2のγ補
正を撮影画像に施すよう構成されているからである。こ
の逆γ補正を行うことで、画像中の錠剤領域と背景領域
(黒地)のコントラストが大きくなり、以後の処理を有
効に行うことができる。Next, the inverse γ correction unit 103 removes the effect of the γ correction applied to each of the RGB planes and performs the inverse γ correction so that the input / output characteristics of the camera 1 become substantially linear. At this time, for example, 2.2 is used as the value of γ. This is because the NTSC television camera 1 is normally configured to apply γ correction of γ = 2.2 to a captured image. By performing the inverse γ correction, the contrast between the tablet region and the background region (black background) in the image increases, and the subsequent processing can be performed effectively.
【0022】次に、RGBグレイ変換部104が、RG
B成分の中のG成分の濃淡値をそのまま用いて、RGB
画像を濃淡成分のみのグレイ画像に変換する。ここでG
成分を用いる理由は、一般にテレビカメラにおいて、G
成分は他の2つの成分に比べてダイナミックレンジが広
いため、圧倒的に白色の多い錠剤において、微妙な白色
の違いを濃淡に反映することができると考えられるから
からである。なお、RGB画像からグレイ画像に変換す
ることで、以下の処理量を3分の1に削減することがで
きる。Next, the RGB gray conversion unit 104
Using the gray value of the G component in the B component as it is, RGB
The image is converted to a gray image having only the gray components. Where G
The reason for using the component is that the G
This is because the component has a wider dynamic range than the other two components, and it is considered that in a tablet with an overwhelmingly white color, a subtle difference in white color can be reflected in shades. By converting the RGB image into the gray image, the following processing amount can be reduced to one third.
【0023】次に、位置・向き補正部105が、画像中
の錠剤の位置と向きを、同一名柄であれば常に同一の位
置及び方向となるような処理を行う。図2は、この位置
・向き補正の詳細な処理フローを示す。Next, the position / orientation correction unit 105 performs processing so that the position and orientation of the tablet in the image are always the same if they have the same name. FIG. 2 shows a detailed processing flow of the position / orientation correction.
【0024】図2に示すように、まず、グレイ画像に対
し、所定の閾値を用いて画像全体の2値化処理を行い、
錠剤の領域のみを抽出する(ステップ201)。この
時、2値化の閾値を選択する手法として、例えば、判別
基準に基づく大津氏の方法を用いる。この手法は、背景
領域と錠剤領域の2領域に明確に領域分割できるような
画像に対して非常に有効な手法である。詳細について
は、「大津展之:判別および最小2乗基準に基づく自動
閾値選定法、電子通信学会論文誌Vol.J63−DN
o.4、pp.349−356、1980」において論
じられている。As shown in FIG. 2, first, a gray image is subjected to a binarization process for the entire image using a predetermined threshold value.
Only the tablet area is extracted (step 201). At this time, as a method of selecting a threshold for binarization, for example, Mr. Otsu's method based on a discrimination standard is used. This method is very effective for an image that can be clearly divided into two regions, a background region and a tablet region. For details, see “Nobuyuki Otsu: Automatic Threshold Selection Method Based on Discrimination and Least Square Criterion, IEICE Transactions Vol. J63-DN.
o. 4, pp. 349-356, 1980 ".
【0025】次に、2値化画像中の錠剤領域の重心を求
め、重心を画像中心に移動する(ステップ202)。続
いて、錠剤領域内において、上記とは別の閾値を用いて
グレイ画像を2値化することにより、錠剤表面に印刷又
は印刻された識別番号コードの領域を抽出する(ステッ
プ203)。この時の2値化の閾値選定手法にも、上述
した判別基準に基づく大津氏の方法を用いることができ
る。Next, the center of gravity of the tablet area in the binarized image is obtained, and the center of gravity is moved to the center of the image (step 202). Subsequently, the area of the identification number code printed or stamped on the tablet surface is extracted by binarizing the gray image using a different threshold from the above in the tablet area (step 203). At this time, the method of selecting a threshold value for binarization can also use the method of Mr. Otsu based on the above-described determination criteria.
【0026】次に、抽出した識別コード領域の2次モー
メントを求め、この2次モーメントが最大となる方向を
画像のX軸と一致するように、アフィン変換によって画
像全体を回転させる(ステップ204)。Next, the second moment of the extracted identification code area is obtained, and the entire image is rotated by affine transformation so that the direction in which the second moment becomes maximum coincides with the X axis of the image (step 204). .
【0027】こうして錠剤領域の位置と方向を補正する
ことにより、後述する同定の精度が向上する。錠剤の外
観形状の特徴は位置及び方向に依存するからである。ま
た、同一の錠剤であれば常に同じ位置及び方向になるた
め、撮影する際のカメラ1に対する錠剤の厳密な位置・
向きの調整が不要となる。By correcting the position and direction of the tablet area in this way, the accuracy of identification described later is improved. This is because the characteristics of the external shape of the tablet depend on the position and the direction. In addition, since the same position and direction are always used for the same tablet, the exact position of the tablet with respect to the camera
It is not necessary to adjust the direction.
【0028】再び図1を参照して、次に、簡易特徴抽出
部106が、錠剤の画像から比較的高速に抽出できる特
徴を簡易特徴として抽出する。例えば、画像内の錠剤領
域の面積、周囲長などの幾何的特徴や、RGBデジタル
画像から得られる色情報などを抽出し、これらを要素と
した簡易特徴ベクトルを作成する。尚、幾何特徴や色情
報の抽出方法の詳細については、「田村秀行監修:コン
ピュータ画像処理入門、総研出版発行、1985年」な
どを参照されたい。Referring again to FIG. 1, the simple feature extracting unit 106 extracts features that can be extracted relatively quickly from the tablet image as simple features. For example, geometric features such as the area and perimeter of the tablet region in the image, color information obtained from the RGB digital image, and the like are extracted, and a simple feature vector using these as elements is created. For details of the method of extracting geometric features and color information, see “Hideyuki Tamura: Introduction to Computer Image Processing, published by Soken Publishing, 1985”.
【0029】次に、簡易特徴学習部107が、各銘柄に
ついて、学習フェーズで今まで入力された多数の錠剤
(以下、学習サンプルという)の簡易特徴ベクトルの平
均を計算し、この平均ベクトルをその銘柄の簡易特徴ベ
クトルとして簡易特徴ファイル109に格納する。Next, the simple feature learning unit 107 calculates, for each brand, the average of the simple feature vectors of a large number of tablets (hereinafter, referred to as learning samples) input so far in the learning phase, and calculates the average vector as the average. It is stored in the simple feature file 109 as a simple feature vector of the brand.
【0030】次に、簡易特徴散布度算出部108が、各
銘柄について、今まで入力された学習サンプルの簡易特
徴ベクトルとそれらの平均ベクトルとの間の距離の分布
から、その平均を0とした場合の標準偏差σ1を求め
る。ここで、平均ベクトル簡易特徴ベクトルの距離の分
布は例えば図7に示すようになっている。このような距
離分布の標準偏差σ1を各銘柄毎に求め、これを各銘柄
の簡易特徴散布度として簡易特徴ファイル109に格納
する。Next, the simple feature dispersion degree calculation unit 108 sets the average of each brand to 0 based on the distribution of the distance between the simple feature vector of the learning sample input so far and the average vector thereof. Find the standard deviation σ1 in the case. Here, the distribution of the distance of the average vector simple feature vector is as shown in FIG. 7, for example. The standard deviation σ1 of such a distance distribution is obtained for each brand, and this is stored in the simple feature file 109 as the simple feature distribution of each brand.
【0031】次に、特徴抽出部111が、位置・向き補
正されたグレイ画像から錠剤の特徴ベクトルを抽出する
処理を行う。図3はこの特徴抽出の詳細な処理フローを
示す。また、図4〜図6は、特徴抽出の処理を段階を追
って説明するための画像例を示す。Next, the feature extracting unit 111 performs a process of extracting a tablet feature vector from the gray image whose position and orientation have been corrected. FIG. 3 shows a detailed processing flow of this feature extraction. 4 to 6 show examples of images for explaining the feature extraction processing step by step.
【0032】まず、図4に示すような位置・向き補正さ
れたグレイ画像400から、図5に示すように錠剤領域
の全体または一部を含む所定サイズの矩形領域500を
切出す(図3、ステップ301)。ここで、矩形領域5
00のサイズは、予め種々の銘柄の錠剤について特徴抽
出を行なってみた結果に基づき、最も精度の良い特徴抽
出ができるサイズとして、統計的手法により決定された
ものである。First, a rectangular area 500 of a predetermined size including the whole or a part of the tablet area is cut out from the gray image 400 whose position and orientation have been corrected as shown in FIG. Step 301). Here, the rectangular area 5
The size of 00 is determined by a statistical method as the size at which the most accurate feature extraction can be performed based on the results of feature extraction performed on tablets of various brands in advance.
【0033】次に、図6に示すように、この矩形領域5
00を任意のサイズN×Mの小区画600に分割する
(ステップ302)。ここで、小区画600のサイズN
×Mはコンピュータの処理能力に比例して決定される。Next, as shown in FIG.
00 is divided into small sections 600 of an arbitrary size N × M (step 302). Here, the size N of the small section 600
XM is determined in proportion to the processing capacity of the computer.
【0034】次に、各小区画600毎に、その全画素の
濃淡値から代表値を算出する(ステップ303)。この
代表値には、例えば中央値を用いる。中央値は錠剤領域
と背景のように明らかに濃淡値の分布が偏る場合でも、
その分布全体を良く反映することができるからである。
この後、各小区画600の代表値を要素とする濃淡値ベ
クトルを特徴ベクトルとして抽出する(ステップ30
4)。Next, for each small section 600, a representative value is calculated from the gray scale values of all the pixels (step 303). As the representative value, for example, a median value is used. The median is even if the distribution of gray values is clearly biased like the tablet area and the background,
This is because the entire distribution can be well reflected.
Thereafter, a gray-scale value vector having a representative value of each small section 600 as an element is extracted as a feature vector (step 30).
4).
【0035】学習フェーズでは、同定対象となる錠剤の
種々の銘柄の多数の学習サンプルが本システムに供給さ
れて、各学習サンプルに対して以上の撮影から特徴抽出
までの処理が行なわれる。In the learning phase, a large number of learning samples of various brands of tablets to be identified are supplied to the present system, and the above-described processing from photographing to feature extraction is performed on each learning sample.
【0036】再び図1を参照して、次に、特徴学習部1
12が、各銘柄について、その銘柄の多数の学習サンプ
ルから抽出した全濃淡値ベクトルに対し主成分分析を施
し、固有値及び固有ベクトルを得る。そして、固有値に
基づき寄与率を求め、寄与率の高いほうから数個の主成
分を選択し、上記固有ベクトルを用いて、上記全濃淡値
ベクトルを主成分ベクトルに変換する。このように、主
成分分析の結果に基づき有意な特徴を選択することによ
り、特徴ベクトルの次元圧縮が図れ、以後の処理量を削
減することができる。次に、得られた上記主成分ベクト
ルを各銘柄毎に平均して参照ベクトルとし、この参照ベ
クトルを各銘柄の参照ベクトルとして辞書ファイル11
3に格納する。更に、各銘柄の固有ベクトルも辞書ファ
イル113に格納される。Referring again to FIG. 1, next, the feature learning unit 1
12 performs, for each brand, principal component analysis on all gray value vectors extracted from a large number of learning samples of the brand to obtain eigenvalues and eigenvectors. Then, a contribution rate is calculated based on the eigenvalues, several principal components are selected in descending order of the contribution rate, and the full gray value vector is converted into a principal component vector using the eigenvector. As described above, by selecting a significant feature based on the result of the principal component analysis, the dimension of the feature vector can be reduced, and the amount of subsequent processing can be reduced. Next, the obtained principal component vectors are averaged for each issue to obtain a reference vector, and this reference vector is used as a reference vector for each issue in the dictionary file 11.
3 is stored. Further, the unique vector of each brand is also stored in the dictionary file 113.
【0037】次に、特徴散布度算出部114が、各銘柄
毎に、参照ベクトルと今まで処理した多数の学習サンプ
ルの主成分ベクトルとの間の距離の分布から、その平均
を0とした場合のその標準偏差σ2を求める。ここで、
参照ベクトルに対する学習サンプルの距離の分布も、例
えば図7に示すようになる(但し、簡易特徴ベクトルの
距離分布と同一という意味ではなく、距離分布の一般的
なパターンが図7のようになるという意味である)。こ
のような距離分布の標準偏差σ2を各銘柄毎に求め、こ
れを各銘柄の特徴散布度として辞書ファイル113に格
納する。Next, the characteristic dispersion degree calculation unit 114 sets the average to 0 based on the distribution of the distance between the reference vector and the principal component vectors of a large number of training samples processed so far for each brand. To find its standard deviation σ2. here,
The distribution of the distance of the learning sample with respect to the reference vector is also, for example, as shown in FIG. 7 (however, this does not mean that it is the same as the distance distribution of the simple feature vector, but a general pattern of the distance distribution is as shown in FIG. 7). Meaning). The standard deviation σ2 of such a distance distribution is obtained for each brand, and this is stored in the dictionary file 113 as the characteristic distribution of each brand.
【0038】以下、辞書ファイル113に格納された全
銘柄の参照ベクトルと特徴散布度を総称して辞書と呼
ぶ。Hereinafter, the reference vectors of all the brands and the degree of feature distribution stored in the dictionary file 113 are collectively called a dictionary.
【0039】(B)同定フェーズ 同定フェーズでは、対応しているか否かが不明な錠剤と
銘柄について、対応しているか否かの確認検査が行われ
る。即ち、学習フェーズで作成された辞書を用いて、シ
ステムに供給された錠剤とその銘柄とが対応しているか
どうかの同定検査が行なわれる。このフェーズでは、同
定対象となる錠剤と銘柄名とがシステムに入力される。(B) Identification Phase In the identification phase, a check is made to determine whether or not tablets and brands whose correspondence is unknown are compatible. That is, using the dictionary created in the learning phase, an identification test is performed to determine whether the tablets supplied to the system correspond to the brands. In this phase, the tablet to be identified and the brand name are input to the system.
【0040】以下、この同定フェースについて詳細に説
明する。Hereinafter, the identification face will be described in detail.
【0041】図1を参照して、まず、入力された錠剤に
ついて、学習フェーズと同様にカメラ撮影及び銘柄名の
入力が行われる。この時、学習フェーズと異なる点は、
自動錠剤包装機によって一つの分包に包装される複数個
の錠剤が同時にシステムに供給され、それらに対する複
数の銘柄名が入力されることである。Referring to FIG. 1, first, camera shooting and brand name input are performed on the input tablet in the same manner as in the learning phase. At this time, the difference from the learning phase is that
A plurality of tablets packaged in one package by the automatic tablet packaging machine are supplied to the system at the same time, and a plurality of brand names are inputted thereto.
【0042】次に、画像入力部101から位置・向き補
正部105に至る一連の画像処理が行なわれる。この
時、複数個の錠剤の各々について、画像内での錠剤領域
が個別に特定され、各々の位置及び方向が補正される。
その際の位置・向き補正の方法としては、一つには、同
一の画像内で複数個の錠剤が互いに重なり合わないよう
に、相互の位置関係を考慮して位置及び方向を補正する
方法がある。また、第2の方法として、画像内のある一
つの錠剤領域に着目し、他の錠剤を背景と同じ黒色とみ
なした上で、その着目した錠剤領域を画像の中心に一定
方向に置くように位置・向き補正を行って一つの補正後
画像を作成する、という作業を全ての錠剤について繰返
し行うものである。つまり、この第2の方法は、学習フ
ェーズの位置・向き補正処理と同じ処理(図2)を複数
個の錠剤の各々について繰返し行なうもので、その結
果、それら複数個の錠剤が各々異なる機会に1個づつ入
力された場合と同様の、錠剤個数と同枚数の各錠剤毎の
補正後画像が得られることになる。Next, a series of image processing from the image input unit 101 to the position / direction correction unit 105 is performed. At this time, for each of the plurality of tablets, the tablet region in the image is individually specified, and the position and direction of each are corrected.
As a method of correcting the position and orientation at that time, one method is to correct the position and direction in consideration of the mutual positional relationship so that a plurality of tablets do not overlap each other in the same image. is there. Also, as a second method, focusing on one tablet region in the image, considering other tablets as the same black as the background, and placing the focused tablet region in the center of the image in a certain direction. The operation of creating one corrected image by performing position / orientation correction is repeated for all tablets. That is, in the second method, the same processing (FIG. 2) as the position / orientation correction processing in the learning phase is repeatedly performed for each of the plurality of tablets. As in the case of inputting one tablet at a time, the same number of tablets as the number of tablets is obtained for each tablet.
【0043】次に、簡易特徴抽出部106が、それら複
数個の錠剤の各々について、補正後画像の中から既に述
べたような方法で簡易特徴ベクトルを抽出する。Next, the simple feature extraction unit 106 extracts a simple feature vector from each of the plurality of tablets from the corrected image by the method described above.
【0044】次に、同定対象切出し部110が、それら
複数個の錠剤の各々を何という銘柄として同定すればよ
いのかを特定する。即ち、簡易特徴ファイル109か
ら、入力された複数銘柄の各々に対応する平均簡易特徴
ベクトルを読み出し、それらの平均簡易特徴ベクトル
と、先程抽出した各錠剤の簡易特徴ベクトルとの間の距
離を計算する。この時、距離関数にはユーグリッド距
離、類似度などを用いる。一般的な距離関数について
は、例えば「舟久保登:視覚パターンの処理と認識、啓
学出版発行、1990年」を参照されたい。Next, the identification target extracting section 110 specifies what brand each of the plurality of tablets should be identified as. That is, the average simple feature vector corresponding to each of the plurality of brands is read out from the simple feature file 109, and the distance between the average simple feature vector and the simple feature vector of each tablet extracted earlier is calculated. . At this time, the U-grid distance, the similarity, and the like are used as the distance function. For a general distance function, see, for example, “Noboru Funakubo: Processing and Recognition of Visual Patterns, Published by Keigaku Shuppan, 1990”.
【0045】そして、或錠剤の簡易特徴ベクトルと或銘
柄の平均簡易特徴ベクトルとの間に得られた距離が、そ
の銘柄に対応する簡易特徴散布度σ1から定まる許容値
k・σ1内(ここに、kはほぼ1以上3以下の所定の係
数)には、その錠剤はその銘柄として同定する必要があ
ると判断し、その錠剤に対する銘柄リストにその銘柄を
登録する。このような処理を、入力された全ての錠剤の
簡易特徴ベクトルと、入力された全ての銘柄に対応する
平均簡易特徴ベクトルとの間で行なうことにより、それ
ぞれの錠剤について同定を行なうべき1つ又は2つ以上
の銘柄(以下、銘柄候補という)が銘柄リストに登録さ
れることになる。The distance obtained between the simple feature vector of a certain tablet and the average simple feature vector of a certain brand is within an allowable value k · σ1 determined from the simple feature dispersal degree σ1 corresponding to the brand (here, , K is a predetermined coefficient of approximately 1 or more and 3 or less), it is determined that the tablet needs to be identified as the brand, and the brand is registered in the brand list for the tablet. By performing such a process between the simple feature vectors of all the input tablets and the average simple feature vector corresponding to all the brands, one or more identifications should be performed for each tablet. Two or more issues (hereinafter referred to as issue candidates) are registered in the issue list.
【0046】尚、入力された複数銘柄の中に、どの錠剤
の銘柄候補としても登録されてない銘柄があったなら
ば、その銘柄に対応する錠剤が入力されてない、又は画
像に映ってないと判断できる。その場合には、入力され
た錠剤についての処理をここで中止して、同定結果が不
一致となった場合と同様な措置(後述する)を行なうよ
うにしてもよい。If there is a brand which is not registered as a brand candidate for any tablet among the plurality of brands that have been input, the tablet corresponding to the brand has not been entered or is not shown in the image. Can be determined. In that case, the processing for the input tablet may be stopped here, and the same measures (described later) as in the case where the identification results do not match may be performed.
【0047】以上のようにして全ての錠剤に対して銘柄
候補が特定されたなら、次に、特徴抽出部11が、入力
された各錠剤について、その補正後画像から既に述べた
ような方法で濃淡値ベクトルを算出する。After the brand candidates have been specified for all the tablets as described above, the feature extracting unit 11 next calculates the inputted tablets from the corrected images in the same manner as described above. Calculate the gray value vector.
【0048】次に、同定部115が、各錠剤を各銘柄候
補として同定する処理を行なう。まず、各錠剤につい
て、登録されている銘柄候補の各々に対応する固有ベク
トルと参照ベクトルと特徴散布度σ2を辞書ファイル1
13から読み出す。そして、読み出した各銘柄候補の固
有ベクトルを用いて、その錠剤の濃淡値ベクトルを主成
分ベクトルに変換する。Next, the identification unit 115 performs a process of identifying each tablet as each brand candidate. First, for each tablet, an eigenvector, a reference vector, and a characteristic dispersion degree σ2 corresponding to each of the registered brand candidates are stored in the dictionary file 1.
13 is read. Then, using the read eigenvector of each brand candidate, the gray-scale value vector of the tablet is converted into a principal component vector.
【0049】続いて、各銘柄候補の固有ベクトルを用い
て求めた主成分ベクトルと、各銘柄候補の参照ベクトル
との間の距離を計算する。この時、距離関数にはユーク
リッド距離、類似度などを用いる。Subsequently, the distance between the principal component vector obtained using the eigenvector of each brand candidate and the reference vector of each brand candidate is calculated. At this time, a Euclidean distance, a similarity, or the like is used as the distance function.
【0050】次に、同定部115は、こうして各銘柄候
補について得た距離を、各銘柄候補に対応する特徴散布
度σ2から定まる許容値r・σ2と比較する。その結果、
或一つの銘柄候補に関してのみ、この距離が許容値r・
σ2内にある場合は、その錠剤はその銘柄候補に対応す
る錠剤であると判定する。このような肯定的な判定結果
が全ての錠剤について得られ、しかも、全ての錠剤と全
ての銘柄とが完全に1対1で対応づけられ重複した対応
関係がなければ、それら複数の錠剤と複数の銘柄とは完
全に対応していると最終的に判定する。Next, the identification unit 115 compares the distance obtained for each brand candidate with an allowable value r · σ2 determined from the characteristic dispersion degree σ2 corresponding to each brand candidate. as a result,
This distance is the allowable value r ·
If it is within σ2, it is determined that the tablet is a tablet corresponding to the brand candidate. If such a positive determination result is obtained for all tablets, and all tablets and all brands are completely one-to-one and there is no overlapping correspondence, the plurality of tablets and It is finally determined that the brand completely corresponds to the brand.
【0051】一方、上記のような完全な1対1の対応関
係が得られなかった場合、例えば、一つの錠剤が複数の
銘柄候補に対して対応しているという判定結果や、いず
れの銘柄候補にも対応しないという判定結果や、いずれ
の錠剤にも対応しない銘柄が生じた場合等には、最終的
に否定的な同定結果を出力する。否定的な同定結果が出
た場合には、自動錠剤包装機において、対象となった錠
剤を包装せずに排出したり、或いは、その錠剤を包装し
た紙面に否定的な同定結果を示す印を記すようにし、後
に薬剤師がチェックするようにすることが望ましい。On the other hand, when a complete one-to-one correspondence as described above cannot be obtained, for example, a determination result that one tablet corresponds to a plurality of brand candidates, In the case where a judgment result indicating that the tablet does not correspond to any of the tablets or a brand not corresponding to any of the tablets occurs, a negative identification result is finally output. When a negative identification result is obtained, the target tablet is discharged without packaging in the automatic tablet packaging machine, or a mark indicating the negative identification result is printed on the paper on which the tablet is packaged. It is desirable to make a note and a pharmacist check later.
【0052】ところで、同定部115で用いた許容値r
・σを決める係数rや、同定対象切出し部110で用い
た係数kは、ユーザが任意に設定できるようになってい
る。例えば、r=1.0のように許容値が小さい場合、
同定の基準は厳しくなり、銘柄に対応しない錠剤を容易
にはじくことができるが、実際には対応する錠剤であっ
ても、錠剤表面のキズ、欠損、その他の理由で参照ベク
トルとの距離が大きい時には、対応しない錠剤と判定さ
れ、はじかれてしまう。逆にr=3.0のように許容値
が大きい場合には上記の例とは逆の結果が生じる。この
ように許容値によって、本システムのふるまいには大き
く異なる。そのため、例えば安全性を重視して多少でも
異なる錠剤ははじくというように、目的によってユーザ
が適当な許容値を設定する必要がある。The allowable value r used in the identification unit 115
The coefficient r for determining σ and the coefficient k used in the identification target extraction unit 110 can be arbitrarily set by the user. For example, when the allowable value is small such as r = 1.0,
The criterion for identification is stricter, and tablets that do not correspond to brands can be repelled easily, but even for the corresponding tablets, the distance from the reference vector is large due to scratches, defects, or other reasons on the tablet surface Sometimes, it is determined that the tablet does not correspond, and it is repelled. Conversely, if the allowable value is large, such as r = 3.0, the opposite result to the above example will occur. As described above, the behavior of the present system greatly differs depending on the allowable value. For this reason, it is necessary for the user to set an appropriate allowable value depending on the purpose, for example, rejecting a slightly different tablet with emphasis on safety.
【0053】以上のように、本実施例の錠剤同定システ
ムでは、人間の目視に頼ることなく銘柄と錠剤の同定検
査を行うことができる。しかも、複数個の錠剤が同時に
供給されても、それらの同定を高い精度で行なうことが
できる。As described above, the tablet identification system according to the present embodiment can perform a brand and tablet identification test without relying on human eyes. Moreover, even if a plurality of tablets are supplied at the same time, they can be identified with high accuracy.
【0054】また、本実施例では、基本となる特徴ベク
トルとして濃淡値ベクトルを用いるため、距離計算の処
理は、参照画像と同定対象画像とを重ね合わせてその一
致の度合いを算出していることと実質的に等価である。
このような特徴ベクトルは従来のパタン識別システムに
おいてはほとんど用いられることがなかったが、画像情
報を最大限活用できることから、大カテゴリーを処理対
象にする場合には有効である。Further, in this embodiment, since the gray-scale value vector is used as the basic feature vector, the distance calculation process is performed by superimposing the reference image and the identification target image to calculate the degree of coincidence. Is substantially equivalent to
Such a feature vector is rarely used in a conventional pattern identification system, but is effective when processing a large category because it can make maximum use of image information.
【0055】尚、本発明は上記実施例に限定されるもの
ではなく、その要旨を逸脱しない範囲において種々の異
なる態様で実施可能である。例えば、錠剤だけでなく、
例えば自動製造ラインにおける各種部品の同定検査等の
用途にも適用することができる。The present invention is not limited to the above embodiment, but can be implemented in various different forms without departing from the scope of the invention. For example, not only tablets,
For example, the present invention can be applied to uses such as identification inspection of various parts in an automatic manufacturing line.
【0056】[0056]
【発明の効果】本発明によれば、物品の同定を自動的に
行うことが可能である。特に、錠剤自動包装機の運用に
使用する場合には、確実に正しい錠剤だけを患者に提供
できるので、医療の高品質化を実現することができる。
更に、複数個の物品と複数のカテゴリとの間の同定検査
も可能であるため、錠剤包装のように複数個の物品を一
組として取扱うことが通常な用途に対して高い実用性を
発揮できる。According to the present invention, it is possible to automatically identify an article. In particular, when used for the operation of an automatic tablet packaging machine, only correct tablets can be reliably provided to patients, so that high-quality medical treatment can be realized.
Further, since identification tests between a plurality of articles and a plurality of categories are also possible, it is possible to exhibit high practicability for a normal use where a plurality of articles are handled as a set like a tablet package. .
【図1】本発明の一実施例に係る錠剤同定システムの構
成を示すブロック図。FIG. 1 is a block diagram showing a configuration of a tablet identification system according to one embodiment of the present invention.
【図2】同実施例における位置・向き補正部の処理を示
すフローチャート。FIG. 2 is a flowchart showing processing of a position / direction correction unit in the embodiment.
【図3】同実施例における特徴抽出部の処理を示すフロ
ーチャート。FIG. 3 is a flowchart showing processing of a feature extracting unit in the embodiment.
【図4】同実施例における位置・向き補正部を施した後
のグレイ画像の例を示す図。FIG. 4 is a view showing an example of a gray image after a position / direction correction unit is applied in the embodiment.
【図5】同実施例における図4の画像から切り出された
矩形領域を示す図。FIG. 5 is a view showing a rectangular area cut out from the image of FIG. 4 in the embodiment.
【図6】同実施例における図5の画像を小区域に分けた
状態を示す図。FIG. 6 is a diagram showing a state where the image of FIG. 5 is divided into small sections in the embodiment.
【図7】同実施例における参照ベクトルに対する学習サ
ンプルの距離分布の例を示す図。FIG. 7 is a view showing an example of a distance distribution of learning samples with respect to a reference vector in the embodiment.
1 NTSCテレビカメラ 100 コンピュータ 101 画像入力部 102 銘柄入力部 103 逆γ補正部 104 RGBグレイ変換部 105 位置・向き補正部 106 簡易特徴抽出部 107 簡易特徴学習部 108 簡易特徴散布度算出部 109 簡易特徴ファイル 110 同定対象切出し部 111 特徴抽出部 112 特徴学習部 113 辞書ファイル 114 特徴散布度学習部 115 同定部 1 NTSC TV camera 100 Computer 101 Image input unit 102 Brand input unit 103 Inverse γ correction unit 104 RGB gray conversion unit 105 Position / direction correction unit 106 Simple feature extraction unit 107 Simple feature learning unit 108 Simple feature dispersion degree calculation unit 109 Simple feature File 110 Identification target extraction unit 111 Feature extraction unit 112 Feature learning unit 113 Dictionary file 114 Feature dispersion degree learning unit 115 Identification unit
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平5−159064(JP,A) 特開 平4−316282(JP,A) 特開 平5−159063(JP,A) 特開 平3−134779(JP,A) 特開 平2−292676(JP,A) 特開 昭63−138472(JP,A) 特表 昭56−500107(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06T 5/00 - 7/00 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-5-159064 (JP, A) JP-A-4-316282 (JP, A) JP-A-5-159063 (JP, A) JP-A-3-315 134779 (JP, A) JP-A-2-292676 (JP, A) JP-A-63-138472 (JP, A) JP-T-56-500107 (JP, A) (58) Fields investigated (Int. 6 , DB name) G06T 5/00-7/00
Claims (6)
されたカテゴリーに係るものか判定する物品同定システ
ムにおいて、 複数物品の画像を入力する画像入力手段と、 前記複数物品と対応するか否かの判定の対象である複数
カテゴリーを入力するカテゴリー入力手段と、 前記入力された画像の全体中から各物品の画像を切出す
物品画像切出し手段と、 前記切出された各物品画像の濃淡値ベクトルを特徴ベク
トルとして抽出する特徴抽出手段と、 前記抽出した各物品画像の特徴ベクトルと予め用意した
種々のカテゴリーの参照ベクトル中の前記入力された複
数カテゴリーの各々の参照ベクトルとの間の距離を求
め、この距離が予め定めた許容値内にあるか否かによ
り、前記入力された複数物品の各々が前記入力された複
数カテゴリーの各々に対応するものか否かを判定する同
定手段と、 を備えることを特徴とする物品同定システム。1. An article identification system for determining whether a plurality of articles input to a system belong to an input category, an image input means for inputting an image of the plurality of articles, and whether or not the article corresponds to the plurality of articles . Multiples subject to judgment
And category input means for inputting a category, an article image clipping means for cutting out the image of each article from in total of the input image, extracts a gray value vector of each article image the cut out as a feature vector A feature extraction means, and a feature vector of each of the extracted article images prepared in advance.
The input duplicates in various categories of reference vectors
Obtains the distance between each of the reference vector number categories, according to whether this distance is in the predetermined within tolerance, multiple each of the inputted plurality article is the input
An identification means for determining whether or not each of the categories corresponds to each of the categories.
出する簡易特徴抽出手段と、 予め用意されている種々のカテゴリーの簡易特徴中の前
記入力された複数カテゴリーの各々に対応する簡易特徴
と、前記各物品の簡易特徴との間の距離を求め、この距
離に基づいて、各物品について同定を行なうべきカテゴ
リ候補を前記入力された複数カテゴリ中から選択するカ
テゴリ候補選択手段と、 を更に備え、 前記同定手段が、前記各物品の前記特徴ベクトルと、前
記種々のカテゴリーの参照ベクトル中の前記各物品につ
いて選択されたカテゴリ候補に対応する参照ベクトルと
の間の距離を求め、この距離が予め定めた許容値内にあ
るか否かにより、前記各物品が前記選択されたカテゴリ
ー候補に対応するものか否かを判定することを特徴とす
る物品同定システム。2. A system of claim 1, from each article image the cut out, and a simplified feature extraction means for extracting a simple feature of each article, in the simple features of the various categories that are prepared in advance The distance between the simple feature corresponding to each of the plurality of categories inputted above and the simple feature of each article is obtained, and a category candidate to be identified for each article is determined based on the distance. and category candidate selection means for selecting from a plurality categories in which are the input, further wherein the identification means, the said characteristic vector of each article, before
The distance between the reference vector corresponding to the category candidate selected for each of the articles in the reference vectors of various categories is determined, and whether or not this distance is within a predetermined allowable value is determined. Is determined as to whether or not the item corresponds to the selected category candidate.
テゴリに対応する簡易特徴との間の距離が、前記或カテ
ゴリに対応する所定の許容値内にある時、前記或カテゴ
リを前記或物品のカテゴリ候補とすることを特徴とする
物品同定システム。3. The system according to claim 2, wherein the category candidate selecting means determines that a distance between a simple feature of an article and a simple feature corresponding to a certain category is a predetermined allowable value corresponding to the certain category. Wherein the certain category is a category candidate of the certain article.
て、 前記同定手段が、前記複数の物品の全てと前記入力され
たカテゴリの全てとが完全に1対1で対応する時、最終
的に肯定的な同定結果を出力することを特徴とする物品
同定システム。4. The system according to claim 1, wherein said identifying means finally determines when all of said plurality of articles correspond to all of said input categories completely one-to-one. An article identification system characterized by outputting a unique identification result.
されたカテゴリーに係るものか判定する物品同定方法に
おいて、 複数の物品の画像を入力する過程と、 前記複数の物品に対応するか否かの判定の対象である複
数のカテゴリーを入力する過程と、 前記入力された画像の全体中から各物品の画像を切出す
過程と、 前記切出した各物品画像の濃淡値ベクトルを特徴ベクト
ルとして抽出する過程と、 前記抽出した各物品画像の特徴ベクトルと予め用意した
種々のカテゴリの参照ベクトル中の前記入力された複数
カテゴリーの各々の参照ベクトルとの間の距離を求め、
この距離が予め定めた許容値内にあるか否かにより、前
記入力された複数物品の各々が前記入力された複数カテ
ゴリーの各々に対応するものか否かを判定する過程と、 を備えることを特徴とする物品同定方法。5. An article identification method for determining whether a plurality of articles input to a system belongs to an input category, a step of inputting an image of the plurality of articles, and determining whether the plurality of articles correspond to the plurality of articles . The target of the judgment of
A step of inputting a number category, a step of cutting out an image of each article from the whole of the input image, a step of extracting a gray-scale value vector of each cut-out article image as a feature vector, and Feature vector of each article image and prepared in advance
Determining distances between reference vectors of each of the plurality of input categories in reference vectors of various categories ;
Determining whether each of the input plurality of articles corresponds to each of the input plurality of categories by determining whether the distance is within a predetermined allowable value; and An article identification method, comprising:
出する過程と、 予め用意されている種々のカテゴリー
の簡易特徴中の前記入力された複数カテゴリの各々に対
応する簡易特徴と、前記各物品の簡易特徴との間の距離
を求め、この距離に基づいて、各物品について同定を行
なうべきカテゴリ候補を前記入力された複数カテゴリ中
から選択する過程と、 を更に備え、 前記判定する過程が、前記各物品の前記特徴ベクトル
と、前記種々のカテゴリーの参照ベクトル中の前記各物
品について選択されたカテゴリ候補に対応する参照ベク
トルとの間の距離を求め、この距離が予め定めた許容値
内にあるか否かにより、前記各物品が前記選択されたカ
テゴリー候補に対応するものか否かを判定することを特
徴とする物品同定方法。6. The method according to claim 5, wherein a simple feature of each article is extracted from each of the extracted article images, and various categories prepared in advance.
The distance between the simple feature corresponding to each of the plurality of input categories in the simple features and the simple feature of each article is determined, and based on this distance, a category candidate to be identified for each article is determined. Selecting from among the plurality of input categories, wherein the determining includes selecting the feature vector of each of the articles and a category candidate selected for each of the articles in the reference vectors of the various categories. And determining whether or not each of the articles corresponds to the selected category candidate by determining whether or not the distance is within a predetermined allowable value. Article identification method characterized by the above-mentioned.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6069068A JP2879129B2 (en) | 1994-03-14 | 1994-03-14 | Article identification system and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6069068A JP2879129B2 (en) | 1994-03-14 | 1994-03-14 | Article identification system and method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH07254067A JPH07254067A (en) | 1995-10-03 |
| JP2879129B2 true JP2879129B2 (en) | 1999-04-05 |
Family
ID=13391897
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6069068A Expired - Fee Related JP2879129B2 (en) | 1994-03-14 | 1994-03-14 | Article identification system and method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2879129B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2004112685A1 (en) * | 2003-06-19 | 2004-12-29 | Yuyama Mfg. Co., Ltd. | Drug auditing device |
| JP6497856B2 (en) * | 2014-07-03 | 2019-04-10 | アレイ株式会社 | Tablet identification device and method, and packaged tablet inspection device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH05159064A (en) * | 1991-12-09 | 1993-06-25 | Nippon Telegr & Teleph Corp <Ntt> | Image searching device |
-
1994
- 1994-03-14 JP JP6069068A patent/JP2879129B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH07254067A (en) | 1995-10-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5450504A (en) | Method for finding a most likely matching of a target facial image in a data base of facial images | |
| JP3954484B2 (en) | Image processing apparatus and program | |
| CN104584071B (en) | Object detector, object identification method | |
| JP2700440B2 (en) | Article identification system | |
| CN114782509A (en) | Workpiece waste detection method, system and device | |
| CN113840135A (en) | Color cast detection method, device, equipment and storage medium | |
| CN104537376A (en) | A method, a relevant device, and a system for identifying a station caption | |
| JP7427684B2 (en) | Drug verification system, drug management method and program | |
| WO2024130857A1 (en) | Article display inspection method and apparatus, and device and readable storage medium | |
| US20120020535A1 (en) | Unique, repeatable, and compact biometric identifier | |
| CN110288040A (en) | A kind of similar evaluation method of image based on validating topology and equipment | |
| CN115620305B (en) | Photographing and medicine identifying system based on deep learning and application method thereof | |
| JP2922110B2 (en) | Article identification system | |
| US20030108242A1 (en) | Method and apparatus for processing data | |
| JP2879129B2 (en) | Article identification system and method | |
| CN116433671A (en) | A colloidal gold detection method, system and storage medium based on image recognition | |
| Suntronsuk et al. | Pill image binarization for detecting text imprints | |
| KR101396713B1 (en) | Apparatus for recognizing medicine using image technique | |
| JPH07262379A (en) | Item identification system | |
| JP2989741B2 (en) | Article identification system | |
| JPH07262378A (en) | Item identification system | |
| JP2879127B2 (en) | Article identification system and method | |
| JPH07254068A (en) | Item identification system | |
| US11817207B1 (en) | Medication inventory system including image based boundary determination for generating a medication tray stocking list and related methods | |
| CN119723559B (en) | A method for classifying and identifying combination pills |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090129 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090129 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100129 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110129 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110129 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120129 Year of fee payment: 13 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120129 Year of fee payment: 13 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130129 Year of fee payment: 14 |
|
| LAPS | Cancellation because of no payment of annual fees |