JPH07204253A - Tablet inspection system - Google Patents

Tablet inspection system

Info

Publication number
JPH07204253A
JPH07204253A JP557994A JP557994A JPH07204253A JP H07204253 A JPH07204253 A JP H07204253A JP 557994 A JP557994 A JP 557994A JP 557994 A JP557994 A JP 557994A JP H07204253 A JPH07204253 A JP H07204253A
Authority
JP
Japan
Prior art keywords
image
medicine bag
tablet
tablets
illumination
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.)
Granted
Application number
JP557994A
Other languages
Japanese (ja)
Other versions
JP3423055B2 (en
Inventor
Hitoshi Kihara
均 木原
Nobuo Kuchiki
伸夫 朽木
Yasuhiro Nagai
靖泰 永井
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP00557994A priority Critical patent/JP3423055B2/en
Publication of JPH07204253A publication Critical patent/JPH07204253A/en
Application granted granted Critical
Publication of JP3423055B2 publication Critical patent/JP3423055B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To provide a tablet inspection system capable of accurately detecting the number of tablets in a medicine bag. CONSTITUTION:A medicine bag 15 is illuminated from lower level with the first illumination tool 21, or from upper level with the second illumination tool 6 having a slit plate 7. In this state, the surface of the bag 15 is photographed with a CCD camera 2. An image processing device 5 binarizes an image obtainable from the camera 2 under illumination only with the tool 21 and reverses the binarized image, thereby producing a masking image. Also, an image obtainable from the camera 2 under illumination only with the tool 6 is subjected to a masking process, using the masking image and, then, the break points of a fringe pattern in the image are detected. Furthermore, a plurality of the break points are connected to form a continuous boundary line, and the binarized image is separated with the boundary line, thereby detecting the number of joint components in the image.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、薬袋内に封入された錠
剤の個数を検出する錠剤検査システムに関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a tablet inspection system for detecting the number of tablets enclosed in a medicine bag.

【0002】[0002]

【従来の技術】従来、病院や薬局における錠剤包装業務
を自動化するべく、図8に示す如き錠剤包装装置(1)が
開発されている。該錠剤包装装置(1)は、複数種類の錠
剤が種類別に収納された錠剤供給ユニット(11)を具え、
該錠剤供給ユニット(11)から排出される各種の錠剤(9)
を、ベルトコンベア(12)(13)を経て透明の分包紙(14)内
へ自動的に投入し、分包機構(17)によって分包紙(14)を
一人分毎に封止するものである。又、分包紙(14)の搬送
路には、分包紙(14)の表面に患者名や用法等を自動的に
印字するための印字機構(図示省略)が配備される。この
様にして得られた分包紙(14)を封止部にて一人分毎に切
り離すことによって、図2に示す患者別の薬袋(15)が得
られる。該薬袋(15)は、患者名や用法等の印刷部(16)を
有し、その中には患者が一度に服用すべき複数種類の錠
剤(9)が必要数だけ封入されているので、便利であり、
服用に間違いが生じる虞れもない。
2. Description of the Related Art Conventionally, a tablet packing apparatus (1) as shown in FIG. 8 has been developed in order to automate tablet packing operations in hospitals and pharmacies. The tablet packaging device (1) includes a tablet supply unit (11) in which a plurality of types of tablets are stored according to type,
Various tablets (9) discharged from the tablet supply unit (11)
Automatically into the transparent packing paper (14) via the belt conveyors (12) (13), and the packing mechanism (17) seals the packing paper (14) for each person. Is. In addition, a printing mechanism (not shown) for automatically printing the patient name, usage, etc. on the surface of the packaging paper (14) is provided in the transport path of the packaging paper (14). By separating the packaging paper (14) thus obtained at the sealing portion for each person, the medicine bag (15) for each patient shown in FIG. 2 is obtained. The medicine bag (15) has a printing section (16) for patient name, usage, etc., in which a necessary number of tablets (9) of a plurality of types to be taken by the patient are enclosed, Convenient and
There is no risk of mistakes in taking the drug.

【0003】しかし、上記錠剤包装装置を用いた従来の
包装作業においては、1包化すべき複数の錠剤が正確に
1つの薬袋内に封入されたことを、検査員が目視によっ
て確認しており、この煩雑な検査作業によって包装作業
全体の能率が低下する問題があった。
However, in the conventional packaging work using the above-mentioned tablet packaging apparatus, the inspector visually confirms that a plurality of tablets to be packaged are accurately enclosed in one medicine bag, Due to this complicated inspection work, there is a problem that the efficiency of the whole packaging work is reduced.

【0004】そこで出願人は、薬袋の画像を対象とする
画像認識によって、薬袋内に封入された錠剤の個数を自
動的に検出することが出来る錠剤検査システムを提案し
ている(特願平5−334727号)。
[0004] Therefore, the applicant has proposed a tablet inspection system capable of automatically detecting the number of tablets enclosed in the medicine bag by image recognition for the image of the medicine bag (Japanese Patent Application No. Hei 5 (1999)). -334727).

【0005】該錠剤検査システムにおいて、図8の如く
錠剤包装装置(1)から排出される分包紙(14)は更に水平
方向に搬送され、該搬送路の上方位置に、薬袋(15)の表
面を撮影するカメラ(2)が配置されている。又、該搬送
路の下方位置には、薬袋(15)の裏面を照明する平面型の
照明具(21)が配置されている。尚、カメラ(2)は41万
画素を有する白黒のCCDカメラである。
In the tablet inspection system, as shown in FIG. 8, the packaging paper (14) discharged from the tablet packaging device (1) is further transported in the horizontal direction, and the medicine bag (15) is placed above the transportation path. A camera (2) for photographing the surface is arranged. Further, a planar illuminator (21) for illuminating the back surface of the medicine bag (15) is arranged at a position below the transport path. The camera (2) is a monochrome CCD camera having 410,000 pixels.

【0006】CCDカメラ(2)から得られる画像信号は
マイクロコンピュータ等から構成される画像認識処理装
置(3)へ送られて、2値画像に変換された後、該2値画
像に基づいて画像認識処理が実行される。この結果、薬
袋(15)に封入されている錠剤(9)の個数が検出される。
又、画像認識処理装置(3)にはモニター(4)が接続され
ており、画像処理の過程が映し出される。
An image signal obtained from the CCD camera (2) is sent to an image recognition processing device (3) composed of a microcomputer or the like, converted into a binary image, and then an image based on the binary image. The recognition process is executed. As a result, the number of tablets (9) enclosed in the medicine bag (15) is detected.
Also, a monitor (4) is connected to the image recognition processing device (3), and the process of image processing is displayed.

【0007】[0007]

【発明が解決しようとする課題】上記錠剤検査システム
によれば、錠剤どうしがその一部で互いに重なっている
場合でも、これらの錠剤の画像を互いに分離することに
よって、錠剤の数量を認識することが出来る。しかしな
がら、図4(a)の如くある錠剤が他の錠剤の上に完全に
乗り上げて、図4(b)に示す2値画像においては他の錠
剤の画像内に全体が埋没してしまう場合があり、この場
合には、乗り上げた錠剤の画像を識別することが出来
ず、錠剤の数量を正確に検出することが出来ない虞れが
あった。そこで本発明は、薬袋内の錠剤どうしの重なり
状態に拘わらず、錠剤の個数を正確に検出することが出
来る錠剤検査システムを提供することを目的とする。
According to the above-described tablet inspection system, even when tablets are partially overlapped with each other, the number of tablets is recognized by separating the images of these tablets from each other. Can be done. However, as shown in FIG. 4 (a), a certain tablet may completely ride on another tablet, and in the binary image shown in FIG. 4 (b), the entire tablet may be embedded in the image of the other tablet. However, in this case, there is a possibility that the image of the loaded tablets cannot be identified and the number of tablets cannot be accurately detected. Therefore, an object of the present invention is to provide a tablet inspection system capable of accurately detecting the number of tablets regardless of the overlapping state of tablets in a medicine bag.

【0008】[0008]

【課題を解決する為の手段】本発明に係る錠剤検査シス
テムは、検査位置の薬袋の裏面全体を照明する第1照明
手段と、該薬袋の表面へ向けてスリット光を照射する第
2照明手段と、該薬袋の表面を撮影する撮像手段と、撮
像手段から得られる画像を処理して薬袋内の錠剤の個数
をカウントする画像処理手段とを具えている。該画像処
理手段は、第1照明手段のみによる照明の下で撮像手段
から得られる画像を2値化して2値画像を得る手段と、
該2値画像を反転してマスク画像を生成する手段と、第
2照明手段による照明の下で撮像手段から得られる画像
に対して前記マスク画像によるマスク処理を施す手段
と、マスク処理を経た画像中の縞模様の不連続点を検出
する手段と、検出された複数の不連続点を縞の長手方向
とは交差する方向に繋いで、連続した境界線を得る手段
と、前記2値画像を前記境界線によって切り離す手段
と、これによって得られた2値画像に含まれる連結成分
の個数を検出する手段とを具えている。
A tablet inspection system according to the present invention comprises first illuminating means for illuminating the entire back surface of a medicine bag at an inspection position and second illuminating means for irradiating the front surface of the medicine bag with slit light. And image processing means for photographing the surface of the medicine bag, and image processing means for processing the image obtained from the imaging means to count the number of tablets in the medicine bag. The image processing means binarizes an image obtained from the image pickup means under illumination by only the first illumination means to obtain a binary image;
Means for inverting the binary image to generate a mask image, means for subjecting the image obtained from the image pickup means under illumination by the second illumination means to the mask image by the mask image, and an image after the mask processing. Means for detecting a discontinuous point of a striped pattern inside, means for connecting a plurality of detected discontinuous points in a direction intersecting the longitudinal direction of the stripe to obtain a continuous boundary line, and the binary image It comprises means for separating by the boundary line, and means for detecting the number of connected components included in the binary image obtained by this.

【0009】[0009]

【作用】先ず、第1照明手段によって、検査位置の薬袋
を裏面から照明し、撮像手段によって薬袋の画像を取り
込み、これを2値化する。該2値画像においては、例え
ば薬袋内の錠剤の画像部分が“1”、それ以外の画像部
分が“0”となる(図4(b)参照)。更に該2値画像を反
転して、白黒が逆のマスク画像を得る。該マスク画像に
おいては、錠剤の画像部分が“0”、それ以外の画像部
分が“1”となる(図4(c)参照)。
First, the medicine bag at the inspection position is illuminated from the back side by the first illuminating means, the image of the medicine bag is taken in by the image pickup means, and this is binarized. In the binary image, for example, the image portion of the tablet in the medicine bag is "1" and the other image portions are "0" (see FIG. 4 (b)). Further, the binary image is inverted to obtain a mask image with black and white reversed. In the mask image, the image portion of the tablet is "0" and the other image portions are "1" (see FIG. 4 (c)).

【0010】次に、第2照明手段によって、薬袋を表面
から照明し、撮像手段によって薬袋の画像を取り込む。
該画像においては、全面領域にスリット光による縞模様
が形成されており、特に錠剤の表面部分では、縞模様が
湾曲する。ここで、錠剤の輪郭線部分と、複数の錠剤の
重なり部分では、上下の段差に起因して、縞模様が不連
続となる(図4(d)参照)。
Next, the medicine bag is illuminated from the surface by the second illuminating means, and the image of the medicine bag is captured by the imaging means.
In the image, a striped pattern due to the slit light is formed in the entire area, and the striped pattern is curved particularly on the surface portion of the tablet. Here, in the contour line portion of the tablet and the overlapping portion of the plurality of tablets, the striped pattern is discontinuous due to the upper and lower steps (see FIG. 4D).

【0011】続いて、前記縞模様の生じた画像に対して
前記マスク画像によるマスク処理を施して、錠剤の画像
部分のみを抽出する。この抽出された画像においては、
錠剤の画像部分のみに縞模様が存在することになる(図
5(a)参照)。そして、マスク処理を経た画像中の縞模
様の不連続点を検出する。ここで、不連続点の検出は周
知の画像認識によって容易に行なうことが出来る(図5
(b)参照)。不連続点は前述の如く錠剤どうしの重なり
部分で生じているので、これらの不連続点を縞の長手方
向とは交差する方向に繋げば、上に乗っている錠剤の輪
郭、即ち該錠剤と他の錠剤の輪郭線が描かれることにな
る(図5(c)参照)。
Subsequently, the image having the striped pattern is subjected to a mask process by the mask image to extract only the image portion of the tablet. In this extracted image,
A striped pattern exists only in the image portion of the tablet (see FIG. 5 (a)). Then, a striped discontinuous point in the image subjected to the mask processing is detected. Here, the detection of the discontinuity can be easily performed by well-known image recognition (FIG. 5).
(See (b)). Since the discontinuity occurs in the overlapping portion of the tablets as described above, if these discontinuities are connected in the direction intersecting the longitudinal direction of the stripes, the contour of the tablet on which the discontinuity lies, that is, the tablet The contour lines of other tablets will be drawn (see FIG. 5 (c)).

【0012】そこで、前記2値画像を前記境界線によっ
て切り離せば、錠剤の画像が1個の錠剤毎に分断される
(図5(d)参照)。従って、分断された2値画像に含まれ
る連結成分の個数を検出すれば、錠剤の個数を知ること
が出来るのである。
Therefore, if the binary image is separated by the boundary line, the tablet image is divided into individual tablets.
(See FIG. 5 (d)). Therefore, the number of tablets can be known by detecting the number of connected components contained in the divided binary image.

【0013】[0013]

【発明の効果】本発明に係る錠剤検査システムによれ
ば、複数の錠剤の相互の重なり状態に拘わらず、薬袋内
の錠剤個数を正確に検出することが出来る。
According to the tablet inspection system of the present invention, the number of tablets in the medicine bag can be accurately detected regardless of the overlapping state of a plurality of tablets.

【0014】[0014]

【実施例】以下、本発明を図8の錠剤検査システムに実
施した一例につき、図面に沿って詳述する。図1に示す
如くCCDカメラ(2)は画像処理装置(5)に接続されて
おり、該装置によって後述の画像処理が実行される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An example in which the present invention is applied to the tablet inspection system of FIG. 8 will be described in detail below with reference to the drawings. As shown in FIG. 1, the CCD camera (2) is connected to an image processing device (5), and the image processing described later is executed by the device.

【0015】CCDカメラ(2)と照明具(21)の間に挟ま
れた薬袋検査位置の斜め上方には、略45度の角度で薬
袋の表面を照射すべき第2の照明具(6)が配置されると
共に、該照明具(6)の前方にはスリット板(7)が設置さ
れ、スリット板(7)を経たスリット光が薬袋表面に照射
される。
A second illuminator (6) which should irradiate the surface of the medicine bag at an angle of about 45 degrees diagonally above the medicine bag inspection position sandwiched between the CCD camera (2) and the illuminator (21). And a slit plate (7) is installed in front of the illuminator (6), and the slit light passing through the slit plate (7) is applied to the surface of the medicine bag.

【0016】図3は、画像処理装置(5)による画像処理
の手順を表わし、図4(a)〜(d)及び図5(a)〜(d)
は、具体的な画像についての画像処理の進行を表わして
いる。先ず図3のステップS11にて、前記第1の照明
具による下方照明の下で、CCDカメラからの画像を取
り込んで、原画像を得る。
FIG. 3 shows the procedure of image processing by the image processing device (5), and is shown in FIGS. 4 (a) to 4 (d) and 5 (a) to (d).
Represents the progress of image processing for a specific image. First, in step S11 of FIG. 3, an original image is obtained by capturing an image from a CCD camera under downward illumination by the first illuminator.

【0017】次にステップS12にて原画像を所定のス
レッショルドレベルで2値化して、図4(b)の如き2値
画像を得る。該2値画像においては、例えば薬袋内の錠
剤の画像部分が“1”、それ以外の画像部分が“0”と
なる。この際、必要に応じて収縮及び膨張からなるノイ
ズ除去処理(例えば「画像処理の基本技法」技術評論社
発行、53〜56頁参照)を施し、画像中のノイズを消
去する。更に、ステップS13では2値画像を反転し
て、図4(c)の如く錠剤の画像部分が“0”、それ以外
の画像部分が“1”で表わされた白黒逆のマスク画像を
生成する。
Next, in step S12, the original image is binarized at a predetermined threshold level to obtain a binary image as shown in FIG. 4 (b). In the binary image, for example, the image portion of the tablet in the medicine bag is “1” and the other image portions are “0”. At this time, noise removal processing consisting of contraction and expansion (see, for example, "Basic Techniques for Image Processing", published by Technical Review Co., Ltd., pages 53 to 56) is performed to eliminate noise in the image. Further, in step S13, the binary image is inverted to generate a black and white mask image in which the image portion of the tablet is represented by "0" and the other image portion is represented by "1" as shown in FIG. 4 (c). To do.

【0018】次に、ステップS14にて、前記第2の照
明具によるスリット光の照明の下で、CCDカメラから
の画像を取り込んで、これを2値化する。該2値画像に
おいては、図4(d)の如く画面の全領域にスリット光に
よる縞模様が形成されており、特に錠剤の表面部分で
は、錠剤の立体形状に応じて縞模様が湾曲することにな
る。ここで、錠剤の輪郭線部分と、複数の錠剤の重なり
部分では、図6に示す様に上下の段差に起因して、縞模
様が不連続となる。
Next, in step S14, the image from the CCD camera is captured and binarized under the illumination of the slit light by the second illuminator. In the binary image, a striped pattern due to slit light is formed in the entire area of the screen as shown in FIG. 4D, and the striped pattern is curved particularly on the surface portion of the tablet according to the three-dimensional shape of the tablet. become. Here, in the outline portion of the tablet and the overlapping portion of the plurality of tablets, the striped pattern becomes discontinuous due to the step difference between the upper and lower sides as shown in FIG.

【0019】続いて、図3のステップS15にて、縞模
様の生じた図4(d)の2値画像に対して図4(c)のマス
ク画像によるマスク処理を施して、図5(a)の如く錠剤
の画像部分のみを抽出する。図5(a)の2値画像におい
ては、錠剤の画像部分のみに縞模様が存在し、他の縞模
様は消去されている。
Subsequently, in step S15 of FIG. 3, the binary image of FIG. 4 (d) in which the striped pattern is generated is subjected to mask processing by the mask image of FIG. ), Only the image part of the tablet is extracted. In the binary image of FIG. 5A, the striped pattern exists only in the image portion of the tablet, and the other striped patterns are erased.

【0020】そして、ステップS16にて、マスク処理
を経た図5(a)の画像を対象として、図5(b)の如く該
画像中の縞模様の不連続点Aを検出する。これらの不連
続点は、図6に示す様に段差部分で生じる不連続部を画
像認識することによって検出出来、例えば図示の如く不
連続部における縞の角度αを検知することが一つの方法
である。次にステップS17にて、図5(b)に示す複数
の不連続点Aを図5(c)の如く縞の長手方向とは交差す
る方向に繋いで、上に乗り上げている錠剤と下の錠剤と
の境界線Bを抽出する。
Then, in step S16, the striped discontinuous point A in the image as shown in FIG. 5B is detected for the image of FIG. These discontinuities can be detected by image-recognizing the discontinuity generated in the step portion as shown in FIG. 6, and for example, as shown in the figure, the angle α of the stripe in the discontinuity can be detected by one method. is there. Next, in step S17, a plurality of discontinuities A shown in FIG. 5 (b) are connected in a direction intersecting with the longitudinal direction of the stripes as shown in FIG. The boundary line B with the tablet is extracted.

【0021】その後、ステップS18にて、図4(b)に
示す2値画像から図5(c)の境界線の画像を減算して、
図5(d)の如く錠剤の画像を1個の錠剤毎に分断する。
尚、図5(d)においては、“1”を白、“0”を黒とし
て描いている。最後に、図5(d)の2値画像に含まれる
連結成分の個数をカウントして、錠剤の個数を検出す
る。
Then, in step S18, the image of the boundary line in FIG. 5C is subtracted from the binary image shown in FIG.
As shown in FIG. 5D, the tablet image is divided into individual tablets.
In FIG. 5D, "1" is drawn as white and "0" is drawn as black. Finally, the number of connected components included in the binary image of FIG. 5D is counted to detect the number of tablets.

【0022】連結成分の個数のカウントに際しては、2
値画像を対象としてラベリング処理(例えば「画像処理
の基本技法」技術評論社発行、45〜49頁参照)を施
した後、ラベル数をカウントして、錠剤の数量を認識す
る。ここで、錠剤の面積や円形度等の特徴を抽出して、
錠剤の種類を判別することも可能である。そして、認識
された錠剤の数量が所期の数量と一致しているかどうか
を判断し、不一致の場合は不良としてその旨を報知し、
或いは該薬袋を自動的に排除する。
When counting the number of connected components, 2
After performing a labeling process on the value image (see, for example, “Basic Techniques of Image Processing” published by Technical Review Co., Ltd., pages 45 to 49), the number of labels is counted to recognize the number of tablets. Here, extract features such as tablet area and circularity,
It is also possible to determine the type of tablet. Then, it is judged whether or not the recognized quantity of tablets matches the expected quantity, and if they do not match, the fact is notified as a defect,
Alternatively, the medicine bag is automatically removed.

【0023】上述の如く本発明に係る錠剤検査システム
においては、複数の錠剤が互いに重なっている場合で
も、スリット光の照明を利用して錠剤の重なり部分が検
出され、錠剤の画像が個々に分断されるから、薬袋内の
錠剤個数を正確に検出することが出来る。
As described above, in the tablet inspection system according to the present invention, even when a plurality of tablets overlap each other, the overlapping portion of the tablets is detected by utilizing the illumination of the slit light, and the images of the tablets are individually divided. Therefore, the number of tablets in the medicine bag can be accurately detected.

【0024】他の実施例 図7に示す実施例は、前記スリット板(7)の前方(又は
後方)に、第1偏向板(8)を配置すると共に、CCDカ
メラ(2)の下方に、前記第1偏向板(8)とは偏向の向き
が直交する第2偏向板(81)を設置して、薬袋表面での反
射光に起因する誤動作を防止するものである。該実施例
においては、薬袋表面では光が鏡面反射し、錠剤の表面
では光が乱反射するから、第2偏向板(81)によって袋表
面の反射光がカットされて、錠剤の画像が正確にCCD
カメラに取り込まれるのである。
Other Embodiments In the embodiment shown in FIG. 7, the first deflection plate (8) is arranged in front of (or behind) the slit plate (7) and below the CCD camera (2). A second deflecting plate (81) whose deflection direction is orthogonal to that of the first deflecting plate (8) is installed to prevent malfunction due to light reflected on the surface of the medicine bag. In the embodiment, since the light is specularly reflected on the surface of the medicine bag and the light is diffusely reflected on the surface of the tablet, the reflected light on the surface of the bag is cut by the second deflecting plate (81), and the image of the tablet is accurately CCD.
It is captured by the camera.

【0025】上記実施例の説明は、本発明を説明するた
めのものであって、特許請求の範囲に記載の発明を限定
し、或は範囲を減縮する様に解すべきではない。又、本
発明の各部構成は上記実施例に限らず、特許請求の範囲
に記載の技術的範囲内で種々の変形が可能であることは
勿論である。
The above description of the embodiments is for explaining the present invention, and should not be construed as limiting the invention described in the claims or limiting the scope. The configuration of each part of the present invention is not limited to the above-mentioned embodiment, and it goes without saying that various modifications can be made within the technical scope described in the claims.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明に係る錠剤検査システムを構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing the configuration of a tablet inspection system according to the present invention.

【図2】複数の錠剤が封入された薬袋の斜視図である。FIG. 2 is a perspective view of a medicine bag in which a plurality of tablets are enclosed.

【図3】画像処理装置による画像処理を表わすフローチ
ャートである。
FIG. 3 is a flowchart showing image processing by the image processing apparatus.

【図4】具体的な画像についての画像処理の前半を表わ
す工程図である。
FIG. 4 is a process diagram showing the first half of image processing for a specific image.

【図5】同上の後半を表わす工程図である。FIG. 5 is a process drawing showing the latter half of the above.

【図6】段差部分における縞模様の不連続部を表わす図
である。
FIG. 6 is a diagram showing a discontinuous portion of a striped pattern in a step portion.

【図7】他の実施例を示すブロック図である。FIG. 7 is a block diagram showing another embodiment.

【図8】出願人の先願に係る錠剤検査システムの構成を
示す斜視図である。
FIG. 8 is a perspective view showing a configuration of a tablet inspection system according to the applicant's prior application.

【符号の説明】[Explanation of symbols]

(2) CCDカメラ (5) 画像処理装置 (6) 照明具 (7) スリット板 (9) 錠剤 (15) 薬袋 (2) CCD camera (5) Image processing device (6) Lighting equipment (7) Slit plate (9) Tablet (15) Medicine bag

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 光透過性の薬袋内に封入された複数の錠
剤の個数を検出する錠剤検査システムであって、検査位
置の薬袋の裏面全体を照明する第1照明手段と、該薬袋
の表面へ向けてスリット光を照射する第2照明手段と、
該薬袋の表面を撮影する撮像手段と、撮像手段から得ら
れる画像を処理して薬袋内の錠剤の個数をカウントする
画像処理手段とを具え、該画像処理手段は、第1照明手
段のみによる照明の下で撮像手段から得られる画像を2
値化して2値画像を得る手段と、該2値画像を反転して
マスク画像を生成する手段と、第2照明手段による照明
の下で撮像手段から得られる画像に対して前記マスク画
像によるマスク処理を施す手段と、マスク処理を経た画
像中の縞模様の不連続点を検出する手段と、検出された
複数の不連続点を繋いで、連続した境界線を得る手段
と、錠剤の画像を前記境界線によって切り離す手段と、
これによって得られた2値画像に含まれる連結成分の個
数を検出する手段とを具えている錠剤検査システム。
1. A tablet inspection system for detecting the number of a plurality of tablets enclosed in a light-transmitting medicine bag, the first illumination means illuminating the entire back surface of the medicine bag at an inspection position, and the front surface of the medicine bag. Second illuminating means for irradiating the slit light toward
The image pickup device includes an image pickup means for photographing the surface of the medicine bag, and an image processing means for processing the image obtained from the image pickup means to count the number of tablets in the medicine bag. The image processing means is illuminated only by the first illuminating means. The image obtained from the imaging means under
Means for binarizing to obtain a binary image, means for inverting the binary image to generate a mask image, and masking with the mask image for the image obtained from the image pickup means under illumination by the second illumination means A means for performing processing, a means for detecting striped discontinuity points in an image that has undergone mask processing, a means for connecting a plurality of detected discontinuity points, a continuous boundary line, and a tablet image Means for separating by the boundary line,
A tablet inspection system, comprising means for detecting the number of connected components contained in the binary image thus obtained.
JP00557994A 1994-01-24 1994-01-24 Tablet inspection system Expired - Fee Related JP3423055B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP00557994A JP3423055B2 (en) 1994-01-24 1994-01-24 Tablet inspection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP00557994A JP3423055B2 (en) 1994-01-24 1994-01-24 Tablet inspection system

Publications (2)

Publication Number Publication Date
JPH07204253A true JPH07204253A (en) 1995-08-08
JP3423055B2 JP3423055B2 (en) 2003-07-07

Family

ID=11615147

Family Applications (1)

Application Number Title Priority Date Filing Date
JP00557994A Expired - Fee Related JP3423055B2 (en) 1994-01-24 1994-01-24 Tablet inspection system

Country Status (1)

Country Link
JP (1) JP3423055B2 (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012078265A (en) * 2010-10-05 2012-04-19 Panasonic Corp Pill inspection device and pill inspection method
WO2012127827A1 (en) 2011-03-24 2012-09-27 パナソニック株式会社 Tablet inspection device and tablet inspection method using same
JP2013529809A (en) * 2010-06-25 2013-07-22 カーベーアー−ノタシ ソシエテ アノニム Method and system for non-contact aggregation of stacked substrates, especially bills
JP2015536181A (en) * 2012-10-26 2015-12-21 バクスター・コーポレーション・イングルウッドBaxter Corporation Englewood Work station improvements for medical dose preparation systems
KR20160069082A (en) * 2014-12-05 2016-06-16 재단법인대구경북과학기술원 Drug medicine dispensing system and controlling method for the same
KR20170011877A (en) * 2015-07-24 2017-02-02 (주)제이브이엠 Apparatus for inspecting drugs and methods thereof
USD790727S1 (en) 2015-04-24 2017-06-27 Baxter Corporation Englewood Platform for medical dose preparation
US10347374B2 (en) 2008-10-13 2019-07-09 Baxter Corporation Englewood Medication preparation system
US10818387B2 (en) 2014-12-05 2020-10-27 Baxter Corporation Englewood Dose preparation data analytics
US10971257B2 (en) 2012-10-26 2021-04-06 Baxter Corporation Englewood Image acquisition for medical dose preparation system
US11107574B2 (en) 2014-09-30 2021-08-31 Baxter Corporation Englewood Management of medication preparation with formulary management
US11367533B2 (en) 2014-06-30 2022-06-21 Baxter Corporation Englewood Managed medical information exchange
US11575673B2 (en) 2014-09-30 2023-02-07 Baxter Corporation Englewood Central user management in a distributed healthcare information management system
US11948112B2 (en) 2015-03-03 2024-04-02 Baxter Corporation Engelwood Pharmacy workflow management with integrated alerts

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10347374B2 (en) 2008-10-13 2019-07-09 Baxter Corporation Englewood Medication preparation system
JP2013529809A (en) * 2010-06-25 2013-07-22 カーベーアー−ノタシ ソシエテ アノニム Method and system for non-contact aggregation of stacked substrates, especially bills
JP2012078265A (en) * 2010-10-05 2012-04-19 Panasonic Corp Pill inspection device and pill inspection method
WO2012127827A1 (en) 2011-03-24 2012-09-27 パナソニック株式会社 Tablet inspection device and tablet inspection method using same
US10971257B2 (en) 2012-10-26 2021-04-06 Baxter Corporation Englewood Image acquisition for medical dose preparation system
US10646405B2 (en) 2012-10-26 2020-05-12 Baxter Corporation Englewood Work station for medical dose preparation system
US9662273B2 (en) 2012-10-26 2017-05-30 Baxter Corporation Englewood Work station for medical dose preparation system
US11620803B2 (en) 2012-10-26 2023-04-04 Baxter Corporation Englewood Work station for medical dose preparation
USD812768S1 (en) 2012-10-26 2018-03-13 Baxter Corporation Englewood Work station with platform for medical dose preparation
USD812769S1 (en) 2012-10-26 2018-03-13 Baxter Corporation Englewood Work station for medical dose preparation
US10045912B2 (en) 2012-10-26 2018-08-14 Baxter Corporation Englewood Work station for medical dose preparation system
US11080541B2 (en) 2012-10-26 2021-08-03 Baxter Corporation Englewood Work station for medical dose preparation system
JP2019146992A (en) * 2012-10-26 2019-09-05 バクスター・コーポレーション・イングルウッドBaxter Corporation Englewood Improved work station for medical dose preparation system
JP2015536181A (en) * 2012-10-26 2015-12-21 バクスター・コーポレーション・イングルウッドBaxter Corporation Englewood Work station improvements for medical dose preparation systems
US11367533B2 (en) 2014-06-30 2022-06-21 Baxter Corporation Englewood Managed medical information exchange
US11107574B2 (en) 2014-09-30 2021-08-31 Baxter Corporation Englewood Management of medication preparation with formulary management
US11575673B2 (en) 2014-09-30 2023-02-07 Baxter Corporation Englewood Central user management in a distributed healthcare information management system
US10818387B2 (en) 2014-12-05 2020-10-27 Baxter Corporation Englewood Dose preparation data analytics
KR20160069082A (en) * 2014-12-05 2016-06-16 재단법인대구경북과학기술원 Drug medicine dispensing system and controlling method for the same
US11948112B2 (en) 2015-03-03 2024-04-02 Baxter Corporation Engelwood Pharmacy workflow management with integrated alerts
USD790727S1 (en) 2015-04-24 2017-06-27 Baxter Corporation Englewood Platform for medical dose preparation
KR20170011877A (en) * 2015-07-24 2017-02-02 (주)제이브이엠 Apparatus for inspecting drugs and methods thereof

Also Published As

Publication number Publication date
JP3423055B2 (en) 2003-07-07

Similar Documents

Publication Publication Date Title
JP3332543B2 (en) Tablet inspection system
JP3423055B2 (en) Tablet inspection system
JPH07200770A (en) Tablet inspection system
JPH06100555B2 (en) Defect inspection method and device for transparent object
JPH08322912A (en) Tablet inspection system
JP6424624B2 (en) Drug inspection device
KR101762165B1 (en) Appearance inspection device
CN111031995A (en) Medicine inspection support device, image processing method, and program
JPH09231342A (en) Method and device for inspecting tablet
JPH08322913A (en) Tablet inspection system
KR101762158B1 (en) Appearance inspection device
KR20200062533A (en) Apparatus for Checking Packaging Equipment Automation Machine
JPH10267865A (en) Method and device for inspecting ptp sheet
JP2003291929A (en) Inspection method and apparatus for single-dose package sheet
JPH1114334A (en) Defect detecting method and device of netset or wired glass
JPH07200820A (en) Image recognition processing method
JP2681513B2 (en) Painted surface inspection equipment for vehicles
JPH06347410A (en) Defect detective method and device for wired plate glass
JP2720360B2 (en) Painted surface inspection equipment for vehicles
JP4251325B2 (en) Appearance inspection device and PTP packaging machine
JP7309017B1 (en) Tablet inspection device and tablet inspection method
JPH043820B2 (en)
JP4030158B2 (en) PTP sheet tablet inspection device
JP2001272351A (en) Defect-inspecting apparatus
JP3461128B2 (en) Appearance inspection method and device for stamped tablets

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030401

LAPS Cancellation because of no payment of annual fees