KR102576853B1 - Image processing method for counting pill - Google Patents

Image processing method for counting pill Download PDF

Info

Publication number
KR102576853B1
KR102576853B1 KR1020210002593A KR20210002593A KR102576853B1 KR 102576853 B1 KR102576853 B1 KR 102576853B1 KR 1020210002593 A KR1020210002593 A KR 1020210002593A KR 20210002593 A KR20210002593 A KR 20210002593A KR 102576853 B1 KR102576853 B1 KR 102576853B1
Authority
KR
South Korea
Prior art keywords
image
pill
central server
white
black
Prior art date
Application number
KR1020210002593A
Other languages
Korean (ko)
Other versions
KR20220100302A (en
Inventor
박영도
Original Assignee
주식회사 센다코리아
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 주식회사 센다코리아 filed Critical 주식회사 센다코리아
Priority to KR1020210002593A priority Critical patent/KR102576853B1/en
Publication of KR20220100302A publication Critical patent/KR20220100302A/en
Application granted granted Critical
Publication of KR102576853B1 publication Critical patent/KR102576853B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/001Image restoration
    • G06T5/002Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/007Dynamic range modification
    • G06T5/70
    • G06T5/90
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/182Level alarms, e.g. alarms responsive to variables exceeding a threshold
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30242Counting objects in image

Abstract

알약 계수 이미지 프로세싱 방법이 소개된다.
이를 위해 본 발명은 (a)설정된 기준값으로 복수개의 알약을 향해 위치한 카메라의 파라미터를 설정하는 단계; (b)복수개의 알약이 놓여진 트레이를 향해 상기 카메라가 촬상하고, 촬상된 초기이미지가 별도의 중앙서버에 저장되는 단계; (c)상기 중앙서버는 설정된 방식으로 상기 촬상된 이미지의 주변 영역을 절단한 후 이미지1을 저장하는 단계; (d)상기 중앙서버는 상기 이미지1에 대해 설정된 밝기(brightness)와 대조(contrast)를 적용하여 이미지2를 저장하는 단계; (e)상기 중앙서버는 상기 이미지2를 그레이스케일 이미지로 변환하여 이미지3을 저장하는 단계; (f)상기 중앙서버는 상기 이미지3의 노이즈를 제거하기 위해 상기 이미지3의 영상 중 픽셀값이 0인 것은 흰색의 픽셀로 상기 이미지3의 영상 중 픽셀값이 1이상 254 이하인 것은 검은색 픽셀로 변환하여 이미지4를 저장하는 단계; (g)상기 중앙서버는 상기 이미지4에서 서로 접촉되어 있는 흰색 픽셀로 이루어진 알약 이미지를 분리하기 위해 거리변환(distance transform) 알고리즘을 적용하여 이미지5를 저장하는 단계; (h)상기 중앙서버는 상기 이미지5에서 알약 이미지는 흰색으로 배경은 검은색으로 표현되도록 알약의 종류에 따라 기 설정된 임계값을 사용하여 이미지6을 저장하는 단계; (i)상기 중앙서버는 OpenCV 프로그램을 이용하여 상기 이미지6에서 흰색 영역에 대한 면적, 중심좌표, 바운드 박스 크기를 포함한 정보를 획득하는 단계; 및 (j)상기 중앙서버는 설정된 알약 크기(면적)를 이용하여 상기 (i)단계에서 획득한 각 흰색 영역의 크기와 비교하여 설정된 오차 범위 내인 경우 녹색으로 표시하고, 설정된 오차 범위를 초과하는 경우 녹색 이외의 다른 색으로 표시하는 단계;를 포함한다.
A pill counting image processing method is introduced.
To this end, the present invention includes the steps of (a) setting the parameters of a camera positioned toward a plurality of pills to a set reference value; (b) the camera captures an image toward a tray on which a plurality of pills are placed, and the captured initial image is stored in a separate central server; (c) the central server cutting the surrounding area of the captured image in a set manner and then storing image 1; (d) the central server storing image 2 by applying brightness and contrast set to image 1; (e) the central server converting image 2 into a grayscale image and storing image 3; (f) In order to remove noise from Image 3, the central server converts the images of Image 3 with a pixel value of 0 into white pixels and the images of Image 3 with a pixel value of 1 to 254 into black pixels. Converting and saving image 4; (g) the central server storing image 5 by applying a distance transform algorithm to separate the pill image composed of white pixels in contact with each other from image 4; (h) the central server storing image 6 using a preset threshold according to the type of pill so that in image 5, the pill image is expressed in white and the background is black; (i) the central server obtaining information including the area, center coordinates, and bounding box size of the white area in image 6 using the OpenCV program; and (j) the central server compares the size of each white area obtained in step (i) using the set pill size (area) and displays it in green if it is within the set error range, and if it exceeds the set error range, It includes a step of displaying in a color other than green.

Description

알약 계수 이미지 프로세싱 방법{IMAGE PROCESSING METHOD FOR COUNTING PILL}Pill counting image processing method {IMAGE PROCESSING METHOD FOR COUNTING PILL}

본 발명은 알약 계수 이미지 프로세싱 방법에 관한 것이다.The present invention relates to a pill counting image processing method.

정제약품 관련 사업 분야에서 약품 감지 및 계수 기술은 약품의 조제 및 분배 자동화를 위한 필수적인 기술이며, 이를 위하여 다수의 알약을 고속으로 감지하고 계수하는 장치 (하드웨어) 및 알고리즘 (소프트웨어)들이 꾸준히 개발되어 왔다In the refined drug business field, drug detection and counting technology is an essential technology for automating the preparation and distribution of drugs, and for this purpose, devices (hardware) and algorithms (software) that detect and count multiple pills at high speed have been steadily developed.

알약 포장을 위한 고속 계수 장치와 관련하여, 종래 특허 KR101462673B1, US5463839 등의 경우, 알약의 고속 계수를 위하여 알약 투입 후 알약의 이동 경로에 여러 개의 트랙 (가이드)을 설치하여 다수의 알약이 서로 다른 경로를 통해 이동하며 최종 포장기 (약통)에 모이는 방식으로 설계되어 있다.Regarding the high-speed counting device for pill packaging, in the case of conventional patents such as KR101462673B1 and US5463839, for high-speed counting of pills, several tracks (guides) are installed in the movement path of the pills after injection, so that multiple pills take different paths. It is designed to move through and collect in the final packaging machine (medicine container).

이는 단시간에 다수의 알약을 고속으로 이동시키기 위한 방법으로 단순히 장치적으로 알약 계수의 효율을 높인 방법에 해당하며, 장치의 계수 속도 성능은 이동 경로의 트랙 수에 의존하게 되고 트랙 내 알약의 고른 이동을 위한 진동부 등을 포함함에 따라 장치의 부피 또한 커진다는 단점이 있다.This is a method for moving a large number of pills at high speed in a short period of time, and simply corresponds to a method that increases the efficiency of pill counting by device. The counting speed performance of the device depends on the number of tracks in the movement path, and the even movement of pills within the track There is a disadvantage in that the volume of the device also increases as it includes a vibrating part for .

또한, 알약의 분배 및 계수와 관련하여, 종래 특허 US6237804, US6377648, US6370215, US6497339 등의 경우, 장치에 스토퍼를 설치하거나 구멍이 뚫린 디스크를 회전시키며 그 구멍을 통과하여 배출된 알약을 계수하는 등의 장치적인 해결 방법들을 제시하고 있으며, 또한 알약이 보관된 카세트를 꽂아 진동을 주어 걸림 없이 알약이 배출되는 방법들을 제안하고 있다.In addition, in relation to the distribution and counting of pills, in the case of conventional patents US6237804, US6377648, US6370215, US6497339, etc., a stopper is installed in the device or a disc with a hole is rotated and the pills discharged through the hole are counted, etc. It suggests mechanical solutions, and also suggests ways to insert the cassette containing the pills and vibrate them so that the pills are ejected without getting caught.

그러나 이 역시 위 사례들과 마찬가지로 단순한 장치적 해결 방법에 해당하며 계수 속도보다 정확성에 중점을 둔 방법이고, 계수 속도 또한 장치의 구동 속도에 의존하게 된다.However, like the above cases, this is also a simple device solution and focuses on accuracy rather than counting speed, and the counting speed also depends on the driving speed of the device.

또한, 이 방법들은 각 장치들에 특화된 방법으로 다른 기존 장치들에 확대 적용이 불가능하다는 단점이 있다.Additionally, these methods have the disadvantage of being specialized for each device and cannot be expanded to other existing devices.

다음으로, 정제약품 계수 및 복약 관리와 관련하여, 종래 특허 US8271128, US8855811의 경우, 정제카세트 카운터와 광학 카운터를 모두 사용하는 방법으로 알약이 보관된 카세트를 장치에 장착하면 카세트 내부 구조가 회전하며 알약을 하나씩 배출하게 된다.Next, in relation to tablet drug counting and medication management, in the case of conventional patents US8271128 and US8855811, when the cassette containing the pills is mounted on the device by using both a tablet cassette counter and an optical counter, the internal structure of the cassette rotates and the tablets are pilled. are released one by one.

이때, 카세트 하단카운터로 알약을 계수하며, 배출된 알약이 장치의 깔때기를 따라 낙하하면서 장치 하부의 광학 카운터를 통과하여 다시 계수되는 구조로 되어있다.At this time, the pills are counted using the bottom counter of the cassette, and the discharged pills fall along the funnel of the device, pass through the optical counter at the bottom of the device, and are counted again.

이는 이중 계수를 통하여 보다 정확하게 알약을 계수할 수 있을 뿐 아니라, 카세트에 부착된 바코드 등으로부터 얻어진 데이터를 통하여 계수되는 알약의 정보 및 계수해야 할 알약의 개수 등을 사전에 파악하여 장착된 카세트의 알약이 맞는지 검증하고 실제 계수한 알약의 개수와 미리 설정된 알약의 개수와 일치하는지를 비교하는 등, 약국과 같이 처방전에 따른 정제약품 조제 및 자동화가 필요한 곳에서 전체적인 조제 작업의 관리까지를 수행할 수 있는 하나의 조제 관리 자동화 시스템으로 제안되었다.This not only allows pills to be counted more accurately through double counting, but also detects in advance the information on the pills to be counted and the number of pills to be counted through data obtained from the barcode attached to the cassette. This is a device that can perform the management of the overall dispensing work in places such as pharmacies that require dispensing and automation of tablets according to prescriptions, such as verifying whether this is correct and comparing whether the actual number of pills counted matches the number of preset pills. It was proposed as an automated dispensing management system.

KR 10-2013-0042089 (2013.04.17)KR 10-2013-0042089 (2013.04.17)

본 발명은 알약계수기에 알약을 계수할 수 있는 별도의 프로그램을 내장하여 알약을 정확하게 계수하고자 함에 있으며, 특히 겹쳐진 알약을 보다 정확하게 계수할 수 있는 알약 계수 이미지 프로세싱 방법에 관한 것이다.The present invention seeks to accurately count pills by embedding a separate program capable of counting pills in a pill counter. In particular, it relates to a pill counting image processing method that can more accurately count overlapping pills.

알약 계수 이미지 프로세싱 방법이 소개된다.A pill counting image processing method is introduced.

이를 위해 본 발명은 (a)설정된 기준값으로 복수개의 알약을 향해 위치한 카메라의 파라미터를 설정하는 단계; (b)복수개의 알약이 놓여진 트레이를 향해 상기 카메라가 촬상하고, 촬상된 초기이미지가 별도의 중앙서버에 저장되는 단계; (c)상기 중앙서버는 설정된 방식으로 상기 촬상된 이미지의 주변 영역을 절단한 후 이미지1을 저장하는 단계; (d)상기 중앙서버는 상기 이미지1에 대해 설정된 밝기(brightness)와 대조(contrast)를 적용하여 이미지2를 저장하는 단계;To this end, the present invention includes the steps of (a) setting the parameters of a camera positioned toward a plurality of pills to a set reference value; (b) the camera captures an image toward a tray on which a plurality of pills are placed, and the captured initial image is stored in a separate central server; (c) the central server cutting the surrounding area of the captured image in a set manner and then storing image 1; (d) the central server storing image 2 by applying brightness and contrast set to image 1;

(e)상기 중앙서버는 상기 이미지2를 그레이스케일 이미지로 변환하여 이미지3을 저장하는 단계; (f)상기 중앙서버는 상기 이미지3의 노이즈를 제거하기 위해 상기 이미지3의 영상 중 픽셀값이 0인 것은 흰색의 픽셀로 상기 이미지3의 영상 중 픽셀값이 1이상 254 이하인 것은 검은색 픽셀로 변환하여 이미지4를 저장하는 단계; (g)상기 중앙서버는 상기 이미지4에서 서로 접촉되어 있는 흰색 픽셀로 이루어진 알약 이미지를 분리하기 위해 거리변환(distance transform) 알고리즘을 적용하여 이미지5를 저장하는 단계; (h)상기 중앙서버는 상기 이미지5에서 알약 이미지는 흰색으로 배경은 검은색으로 표현되도록 알약의 종류에 따라 기 설정된 임계값을 사용하여 이미지6을 저장하는 단계; (i)상기 중앙서버는 OpenCV 프로그램을 이용하여 상기 이미지6에서 흰색 영역에 대한 면적, 중심좌표, 바운드 박스 크기를 포함한 정보를 획득하는 단계; 및 (j)상기 중앙서버는 설정된 알약 크기(면적)를 이용하여 상기 (i)단계에서 획득한 각 흰색 영역의 크기와 비교하여 설정된 오차 범위 내인 경우 녹색으로 표시하고, 설정된 오차 범위를 초과하는 경우 녹색 이외의 다른 색으로 표시하는 단계;를 포함한다.(e) the central server converting image 2 into a grayscale image and storing image 3; (f) In order to remove noise from Image 3, the central server converts the images of Image 3 with a pixel value of 0 into white pixels and the images of Image 3 with a pixel value of 1 to 254 into black pixels. Converting and saving image 4; (g) the central server storing image 5 by applying a distance transform algorithm to separate the pill image composed of white pixels in contact with each other from image 4; (h) the central server storing image 6 using a preset threshold according to the type of pill so that in image 5, the pill image is expressed in white and the background is black; (i) the central server obtaining information including the area, center coordinates, and bounding box size of the white area in image 6 using the OpenCV program; and (j) the central server compares the size of each white area obtained in step (i) using the set pill size (area) and displays it in green if it is within the set error range, and if it exceeds the set error range, It includes a step of displaying in a color other than green.

상기와 같은 구성으로 이루어진 본 발명에 의한다면 겹쳐지게 놓여진 알약을 정확하게 구별하여 알약을 계수할 수 있는 효과가 구현된다.According to the present invention comprised as described above, the effect of accurately distinguishing overlapping pills and counting them is realized.

도 1 내지 도 9는 본 발명인 알약 계수 이미지 프로세싱 방법을 설명하기 위해 각 단계별로 이미지화된 사진이다.Figures 1 to 9 are photographs imaged at each step to explain the pill counting image processing method of the present invention.

이하 첨부된 도면을 참조로 본 발명인 알약 계수 이미지 프로세싱 방법의 바람직한 실시 예를 설명한다.Hereinafter, a preferred embodiment of the pill counting image processing method of the present invention will be described with reference to the attached drawings.

본 발명은 다음과 같은 단계로 수행된다.The present invention is carried out in the following steps.

(a)설정된 기준값으로 복수개의 알약을 향해 위치한 카메라의 파라미터를 설정하는 단계; (b)복수개의 알약이 놓여진 트레이를 향해 상기 카메라가 촬상하고, 촬상된 초기이미지가 별도의 중앙서버에 저장되는 단계; (c)상기 중앙서버는 설정된 방식으로 상기 촬상된 이미지의 주변 영역을 절단한 후 이미지1을 저장하는 단계; (d)상기 중앙서버는 상기 이미지1에 대해 설정된 밝기(brightness)와 대조(contrast)를 적용하여 이미지2를 저장하는 단계; (e)상기 중앙서버는 상기 이미지2를 그레이스케일 이미지로 변환하여 이미지3을 저장하는 단계; (f)상기 중앙서버는 상기 이미지3의 노이즈를 제거하기 위해 상기 이미지3의 영상 중 픽셀값이 0인 것은 흰색의 픽셀로 상기 이미지3의 영상 중 픽셀값이 1이상 254 이하인 것은 검은색 픽셀로 변환하여 이미지4를 저장하는 단계; (g)상기 중앙서버는 상기 이미지4에서 서로 접촉되어 있는 흰색 픽셀로 이루어진 알약 이미지를 분리하기 위해 거리변환(distance transform) 알고리즘을 적용하여 이미지5를 저장하는 단계; (h)상기 중앙서버는 상기 이미지5에서 알약 이미지는 흰색으로 배경은 검은색으로 표현되도록 알약의 종류에 따라 기 설정된 임계값을 사용하여 이미지6을 저장하는 단계; (i)상기 중앙서버는 OpenCV 프로그램을 이용하여 상기 이미지6에서 흰색 영역에 대한 면적, 중심좌표, 바운드 박스 크기를 포함한 정보를 획득하는 단계; 및 (j)상기 중앙서버는 설정된 알약 크기(면적)를 이용하여 상기 (i)단계에서 획득한 각 흰색 영역의 크기와 비교하여 설정된 오차 범위 내인 경우 녹색으로 표시하고, 설정된 오차 범위를 초과하는 경우 녹색 이외의 다른 색으로 표시하는 단계;를 포함한다.(a) Setting the parameters of a camera positioned toward a plurality of pills to a set reference value; (b) the camera captures an image toward a tray on which a plurality of pills are placed, and the captured initial image is stored in a separate central server; (c) the central server cutting the surrounding area of the captured image in a set manner and then storing image 1; (d) the central server storing image 2 by applying brightness and contrast set to image 1; (e) the central server converting image 2 into a grayscale image and storing image 3; (f) In order to remove noise from Image 3, the central server converts the images of Image 3 with a pixel value of 0 into white pixels and the images of Image 3 with a pixel value of 1 to 254 into black pixels. Converting and saving image 4; (g) the central server storing image 5 by applying a distance transform algorithm to separate the pill image composed of white pixels in contact with each other from image 4; (h) the central server storing image 6 using a preset threshold according to the type of pill so that in image 5, the pill image is expressed in white and the background is black; (i) the central server obtaining information including the area, center coordinates, and bounding box size of the white area in image 6 using the OpenCV program; and (j) the central server compares the size of each white area obtained in step (i) using the set pill size (area) and displays it in green if it is within the set error range, and if it exceeds the set error range, It includes a step of displaying in a color other than green.

중앙서버는 도면에는 도시되어 있지 않지만, 일반적인 알약 계수기에 내장된 별도의 중앙서버일 수 있다.The central server is not shown in the drawing, but may be a separate central server built into a general pill counter.

도 1에 도시된 바와 같이, (a)설정된 기준값으로 복수개의 알약을 향해 위치한 카메라의 파라미터를 설정하는 단계와 (b)복수개의 알약이 놓여진 트레이를 향해 상기 카메라가 촬상하고, 촬상된 초기이미지가 별도의 중앙서버에 저장되는 단계가 수행된다.As shown in Figure 1, (a) setting the parameters of a camera positioned toward a plurality of pills to a set reference value and (b) the camera captures an image toward a tray on which a plurality of pills are placed, and the captured initial image is The steps are performed and stored on a separate central server.

카메라 파라미터 설정 (이미지의 가로, 세로 크기, 명도(brightness), 대조(contrast), 감마(gamma), 채도(saturation), 색상(hue) 등)된다.Camera parameters are set (image horizontal and vertical size, brightness, contrast, gamma, saturation, hue, etc.).

본 발명이 적용되는 알약 계수기에서 사용되는 파라미터는 다음과 같다.The parameters used in the pill counter to which the present invention is applied are as follows.

1) 카메라 획득 이미지의 폭(가로) : 640mm, 2) 카메라 획득 이미지의 높이(세로) : 480mm, 3) 카메라 밝기 : 0, 4) 카메라 대조 : 100, 5) 카메라 감마 : 30, 6) 카메라 색상 : -90, 7) 카메라 채도 : 0이다.1) Width of camera-acquired image (horizontal): 640mm, 2) Height of camera-acquired image (vertically): 480mm, 3) Camera brightness: 0, 4) Camera contrast: 100, 5) Camera gamma: 30, 6) Camera Color: -90, 7) Camera saturation: 0.

도 1에 도시된 바와 같이, 알약이 놓인 부분은 검은색 계통, 배경 이미지는 회색 계통의 이미지로 표현된다.As shown in Figure 1, the area where the pill is placed is expressed in black, and the background image is expressed in gray.

그 다음으로, (c)상기 중앙서버는 설정된 방식으로 상기 촬상된 이미지의 주변 영역을 절단한 후 이미지1을 저장하는 단계가 수행된다.Next, (c) the central server cuts the surrounding area of the captured image in a set manner and then stores Image 1.

정확한 알약 계수를 위해 불필요한 영역을 절단하기 위한 단계이며, 이를 위해 상기 초기이미지에서 검은색으로 표현된 알약 이미지가 모두 포함되도록 상기 초기이미지를 중심으로 좌상단과 우하단에 각각 폭과 높이를 표현되는 좌표에 의해 구획되는 사각형 이미지로 주변 영역이 절단되고 상기 이미지1이 저장되는 것을 특징으로 한다.This is a step to cut out unnecessary areas for accurate pill counting. To this end, coordinates are expressed for the width and height at the upper left and lower right corners of the initial image, respectively, so that all pill images expressed in black in the initial image are included. The surrounding area is cut into a square image divided by and the image 1 is stored.

도 2에 도시된 바와 같이 구체적으로는, 절단할 이미지의 좌상단 폭(가로) 방향 좌표(x1), 절단할 이미지의 우하단 폭(가로) 방향 좌표(x2), 절단할 이미지의 좌상단 높이(세로) 방향 좌표(y1), 절단할 이미지의 우하단 높이(세로) 방향 좌표(y2)을 중앙서버에서 설정하면 사각형 이미지가 구획되고, 그 사각형 이미지에 따라 이미지1이 중앙서버에 저장된다.As shown in FIG. 2, specifically, the width (horizontal) direction coordinate of the upper left corner of the image to be cut (x1), the width (horizontal) direction coordinate of the lower right corner of the image to be cut (x2), and the height (vertical) of the upper left corner of the image to be cut. ) If the direction coordinates (y1) and the height (vertical) direction coordinates (y2) of the lower right corner of the image to be cut are set in the central server, the square image is divided, and image 1 is stored in the central server according to the square image.

도시된 바와 같이 불필요한 영역이 절단되고, 검은색 계통의 알약 이미지가 모두 포함되도록 이미지1이 생성된 후 중앙서버에 저장된다.As shown, unnecessary areas are cut out, and Image 1 is created to include all black pill images and then stored on the central server.

그 다음으로, (d)상기 중앙서버는 상기 이미지1에 대해 설정된 밝기(brightness)와 대조(contrast)를 적용하여 이미지2를 저장하는 단계가 수행되는데, 구체적으로는 도 3에 도시된 바와 같이 (d)단계에서의 설정된 밝기는 10이고, 설정된 대조는 60인 것을 특징으로 한다.Next, (d) the central server stores image 2 by applying the brightness and contrast set for image 1. Specifically, as shown in FIG. 3 ( In step d), the set brightness is 10 and the set contrast is 60.

그 다음으로, (e)상기 중앙서버는 상기 이미지2를 그레이스케일 이미지로 변환하여 이미지3을 저장하는 단계가 도 4에 도시된 바와 같이 수행되는데, 해당 이미지의 영역은 복수개의 픽셀로 이루어져 있고, 각각의 픽셀은 0 이상 254 이하의 스케일값이 부여된다.Next, (e) the central server converts image 2 into a grayscale image and stores image 3, as shown in FIG. 4. The area of the image consists of a plurality of pixels, Each pixel is given a scale value between 0 and 254.

그 다음으로, (f)상기 중앙서버는 상기 이미지3의 노이즈를 제거하기 위해 상기 이미지3의 영상 중 픽셀값이 0인 것은 흰색의 픽셀로 상기 이미지3의 영상 중 픽셀값이 1이상 254 이하인 것은 검은색 픽셀로 변환하여 이미지4를 저장하는 단계가 수행된다.Next, (f) in order to remove the noise of Image 3, the central server uses white pixels for the pixel value of 0 among the images of Image 3, and white pixels for the images with a pixel value of 1 to 254 among the images of Image 3. The step of converting to black pixels and saving image 4 is performed.

즉, 도 5에 도시된 바와 같이, 알약 이미지가 도 4에서 검은색으로 표시되므로 임계값 0(검은색) 및 반전 타입 프로그램 로직(검은색으로 표현된 이미지는 흰색으로 변환되고, 흰색으로 표현된 이미지는 검은색으로 변환되는 로직, 중앙서버에 기 저장된 threshold 함수에서 사용하는 파라미터)을 적용하면 픽셀 값이 0인 검은색 픽셀은 흰색 픽셀로 1~254 사이의 값을 갖는 회색 및 흰색 픽셀은 검은색 픽셀로 전환된다.That is, as shown in Figure 5, the pill image is displayed in black in Figure 4, so the threshold value is 0 (black) and the inversion type program logic (images expressed in black are converted to white, and images expressed in white are converted to white). When applying the logic that converts the image to black (the parameter used in the threshold function already stored in the central server), black pixels with a pixel value of 0 are white pixels, and gray and white pixels with values between 1 and 254 are black. Converted to color pixels.

그 다음으로, (g)상기 중앙서버는 상기 이미지4에서 서로 접촉되어 있는 흰색 픽셀로 이루어진 알약 이미지를 분리하기 위해 거리변환(distance transform) 알고리즘을 적용하여 이미지5를 저장하는 단계가 수행된다.Next, (g) the central server stores image 5 by applying a distance transform algorithm to separate the pill image composed of white pixels that are in contact with each other from image 4.

구체적으로는 (g)단계에서의 거리변환(distance transform) 알고리즘은, 유클리드 거리(Euclidean distance) 계산식을 이용하여 현재의 픽셀로부터 값이 0(검은색)인 픽셀까지의 최단 거리의 가장 가까운 거리 값을 갖는 행렬을 구하고, 그 거리값은 0~254 사이의 값으로 매핑함으로써 흰색 영역으로 표현되고 그 이미지가 서로 접하는 영역으로 된 겹쳐진 알약 이미지는 검은색으로 표현되는 것을 특징으로 한다.Specifically, the distance transform algorithm in step (g) uses the Euclidean distance calculation formula to calculate the closest distance value of the shortest distance from the current pixel to the pixel with a value of 0 (black). A matrix with a is obtained, and the distance value is mapped to a value between 0 and 254, so that it is expressed as a white area, and the overlapping pill image, which is the area where the images are in contact with each other, is expressed in black.

더욱, 상세히 설명하면, distance Transform에서는 유클리드 거리(Euclidean distance) 계산식을 이용하여 현재의 픽셀로부터 값이 0(검은색)인 픽셀까지의 가장 가까운 거리 값을 갖는 행렬을 구하고, 거리값은 0~254 사이의 값으로 매핑하게 된다. (회색조 이미지로 표현하기 위함)To explain in more detail, the distance transform uses the Euclidean distance formula to obtain a matrix with the closest distance value from the current pixel to the pixel with a value of 0 (black), and the distance values range from 0 to 254. It is mapped to the value between. (To express as a grayscale image)

유클리드 거리 계산식은 아래의 [표 1]로 설명된다.The Euclidean distance calculation formula is explained in [Table 1] below.

해당 거리변환(distance transform) 알고리즘에 의한다면, 흰색 원(알약 이미지)의 중앙이 가장자리 보다 검은색 픽셀(배경 이미지)까지의 거리가 멀기 때문에 흰색에 가까운 값을 가지고 원의 가장자리 픽셀(알약 이미지의 테두리)은 검은색 픽셀(배경 이미지)까지의 거리가 짧아 값이 0에 가까워 검은색에 가깝게 표현된다.According to the distance transform algorithm, the center of the white circle (pill image) is farther from the black pixel (background image) than the edge, so the edge pixels of the circle (pill image) have a value close to white. The distance to the black pixel (background image) is short, so the value is close to 0, so it is expressed as close to black.

이 과정을 거치면 두 알약이 접하는 부분은 검은색에 가깝게 표현된다.Through this process, the area where the two pills come into contact is rendered close to black.

상기의 과정을 통해 중앙서버에 저장된 이미지는 도 6에 도시되어 있고, 알약 이미지는 물론이고 서로 겹쳐진 알약이미지도 모두 검은색에 가깝게 표현된 것을 확인할 수 있다.The image stored in the central server through the above process is shown in Figure 6, and it can be seen that not only the pill image but also the overlapping pill images are all expressed in close to black.

그 다음으로, (h)상기 중앙서버는 상기 이미지5에서 알약 이미지는 흰색으로 배경은 검은색으로 표현되도록 알약의 종류에 따라 기 설정된 임계값을 사용하여 이미지6을 저장하는 단계가 수행된다.Next, (h) the central server stores image 6 using a preset threshold according to the type of pill so that in image 5, the pill image is expressed in white and the background is black.

기 설정된 임계값에 의해 알약 이미지는 흰색으로, 배경은 검은색으로 표현되고, 겹쳐진 알약 이미지의 분리를 위해 알약의 종류에 따라 기 저장된 축소율에 의해 변환되는 것을 특징으로 한다.The pill image is expressed in white and the background in black according to a preset threshold, and is converted by a pre-stored reduction ratio according to the type of pill to separate the overlapping pill images.

구체적으로 설명하면, 이 단계에서 적용하는 임계값은 알약의 종류(크기, 형상)에 따라 미리 설정된 값을 사용하며, 축소율로 표현한 것이며, 값이 작을수록 원래 크기(이미지4)로 표현되지만 붙어있는 알약의 분리를 위하여 최적의 축소율을 미리 설정하였다. 그 구체적인 실시예의 경우 디아제팜 2mg 의 경우 축소율(임계값) 50 일 때, 기준 크기 117 (픽셀) 을 적용하게 된다.Specifically, the threshold applied at this stage uses a preset value depending on the type (size, shape) of the pill and is expressed as a reduction ratio. The smaller the value, the original size (Image 4) is expressed, but the attached The optimal reduction ratio was set in advance for pill separation. In the specific example, in the case of 2 mg of diazepam, when the reduction rate (threshold) is 50, a standard size of 117 (pixels) is applied.

상기의 단계의 경우 흰색으로 표현되는 알약 이미지가 distance transform을 거치면 회색조의 이미지로 변환된다.In the above step, the pill image expressed in white is converted into a grayscale image by going through distance transform.

또한, 알약 이미지의 중앙 픽셀이 배경 이미지와 거리가 제일 멀어 큰 값을 가지고, 알약의 가장자리로 갈수록 값이 작아지게 되며, 이 회색조의 이미지에 임계값을 적용하면(임계값 이하는 검은색으로 채워져 배경으로 귀속됨) 알약이 축소되는 결과를 얻을 수 있다. In addition, the central pixel of the pill image has a large value because it is the furthest from the background image, and the value becomes smaller as it moves to the edge of the pill. When a threshold is applied to this grayscale image (the area below the threshold is filled with black), (attributable to background) can result in the pill shrinking.

결국, 본 발명에서는 해당 임계값을 축소율로 명시하게 되며, 본 발명의 일 구성요소인 중앙서버에는 사용자의 편의를 위하여 미리 시판중인 다양한 알약에 대하여 축소율 및 기준크기를 얻기 위한 테스트를 수행하여 데이터베이스가 기 저장되어 있다.Ultimately, in the present invention, the relevant threshold is specified as a reduction rate, and for the convenience of users, the central server, which is a component of the present invention, performs tests to obtain the reduction rate and standard size for various pills on the market in advance to create a database. It has been saved.

상기의 단계에 의해 중앙서버에 저장된 이미지가 도 7에 도시되어 있다.The image stored in the central server through the above steps is shown in Figure 7.

도시된 바와 같이 배경 이미지는 검은색 계통으로 되어 있고, 알약 이미지는 흰색 계통으로 되어 있으나, 이전의 이미지에 비해 보다 축소된 흰색 영역으로 되어 있음을 확인할 수 있으며, 더 나아가 알약이 겹쳐진 부분 역시 명확하게 분리된 채 각각의 알약 이미지로 표현되어 있음을 확인할 수 있다.As shown, the background image is black and the pill image is white, but it can be seen that the white area is smaller than the previous image. Furthermore, the area where the pills overlap is also clearly visible. You can see that each pill is separated and expressed as an image.

이 단계까지가 실제로 알약 계수를 위한 준비 단계이다.This step is actually the preparation stage for pill counting.

그 다음으로, (i)상기 중앙서버는 OpenCV 프로그램을 이용하여 상기 이미지6에서 흰색 영역에 대한 면적, 중심좌표, 바운드 박스 크기를 포함한 정보를 획득하는 단계가 수행된다.Next, (i) the central server acquires information including the area, center coordinates, and bounding box size of the white area in Image 6 using the OpenCV program.

구체적으로는 이미지6에 OpenCV의 ‘connectedComponentsWithStats’ 함수를 적용하여 흰색 영역에 대한 정보 획득 (면적(흰색 픽셀 수), 중심좌표, 바운드 박스 크기 등)한다.Specifically, OpenCV's ‘connectedComponentsWithStats’ function is applied to Image 6 to obtain information about the white area (area (number of white pixels), center coordinates, bounding box size, etc.).

실제 알약 계수를 위해서 8단계의 이진화 이미지(Image6)을 이용하여 라벨링 작업을 수행한다.For actual pill counting, labeling is performed using an 8-step binarized image (Image6).

아래 표 2에 도시된 바와 같이 초기이미지의 좌측상단 픽셀이 (x, y) = (0, 0)일 때 좌에서 우측으로 위에서 아래 순으로 이동하면서 흰색 픽셀에 대해서만 주변 픽셀들(8방향, 해당 픽셀을 둘러싼 픽셀들(좌우, 상하, 대각선))과의 상관관계를 찾아 그룹핑(표 3 참조)한다. (아래 표 2의 이진이미지에서는 회색 픽셀 기준)As shown in Table 2 below, when the upper left pixel of the initial image is (x, y) = (0, 0), moving from left to right in order from top to bottom, The correlation with the neighboring pixels (8 directions, pixels surrounding the corresponding pixel (left and right, top and bottom, diagonal)) is found and grouped (see Table 3). (Based on gray pixels in the binary image in Table 2 below)

그룹핑한 결과로부터 그룹의 수, 면적, 중심좌표, 바운드 크기 등의 정보를 획득한다.Information such as number of groups, area, center coordinates, and bound size is obtained from the grouping results.

그룹의 수가 알약의 개수를 의미하며, 면적은 알약의 크기를 표현하며 기준 값과 비교에 사용한다.The number of groups refers to the number of pills, and the area expresses the size of the pills and is used for comparison with the standard value.

그 다음으로, (j)상기 중앙서버는 설정된 알약 크기(면적)를 이용하여 상기 (i)단계에서 획득한 각 흰색 영역의 크기와 비교하여 설정된 오차 범위 내인 경우 녹색으로 표시하고, 설정된 오차 범위를 초과하는 경우 녹색 이외의 다른 색으로 표시하는 단계;를 포함한다.Next, (j) the central server compares the size of each white area obtained in step (i) using the set pill size (area), displays it in green if it is within the set error range, and matches the set error range. If it exceeds it, displaying it in a color other than green.

구체적으로는 설정된 오차 범위 내의 하한 미만인 경우 노랑색으로 표시한 뒤, 사용자에게 경고하고, 오차 범위 내의 상한 초과인 경우 알약의 갯수는 해당 면적을 기준면적으로 나눈 몫으로 표시한 뒤 적색으로 표시하여 사용자에게 경고하는 것을 특징으로 한다.Specifically, if it is below the lower limit within the set error range, it is displayed in yellow and the user is warned. If it is above the upper limit within the error range, the number of pills is displayed as a quotient of the area divided by the reference area and then displayed in red to warn the user. It is characterized by a warning.

그 구체적인 실시예를 도 8과 도 9를 참조로 하여 설명하면 다음과 같다.The specific embodiment will be described with reference to FIGS. 8 and 9 as follows.

도 8은 이미지1에 8단계의 흰색 부분을 녹색(기준 크기 범위 내)으로 칠한 경우를 나타내는 도면이고, 도 9는 사용자에게 경고하는 것을 설명하기 위한 도면이다.FIG. 8 is a diagram showing a case where the white part of level 8 in Image 1 is painted green (within the standard size range), and FIG. 9 is a diagram illustrating a warning to the user.

알약의 색상표현으로 사용자에게 경고하게 된다. 예를 들어 기준크기가 100인 경우 그 크기가 5미만(5%)이면 노이즈로 처리하여 계수에 포함하지 않으며, 그 크기가 5 ~ 50 (50%이하) 이면 계수하되 노랑색으로 표현하여 경고 (도 9의 우측 하단 알약)하게 된다.The color of the pill warns the user. For example, if the standard size is 100, if the size is less than 5 (5%), it is treated as noise and not included in the count. If the size is between 5 and 50 (50% or less), it is counted, but it is expressed in yellow and a warning is issued (Figure 2). pill at the bottom right of 9).

또한, 그 크기가 51~150 (51% ~150%) 이면 정상 크기로 보며 녹색으로 표현되고, 크기가 151 (150% 초과) 이상 이면 기준크기로 나눈 몫을 알약 수로 하고 적색으로 표현하여 경고하게 된다. (도 9의 좌상단 알약의 크기가 350 일 때, 기준 크기로 나눈 몫이 3이므로 3개로 계수함)Additionally, if the size is 51 to 150 (51% to 150%), it is considered a normal size and displayed in green, and if the size is 151 (over 150%), the quotient divided by the standard size is taken as the number of pills and displayed in red to warn. do. (When the size of the pill in the upper left corner of Figure 9 is 350, the quotient divided by the standard size is 3, so it is counted as 3)

Claims (6)

알약 계수 이미지 프로세싱 방법에 있어서,
(a)설정된 기준값으로 복수개의 알약을 향해 위치한 카메라의 파라미터를 설정하는 단계;
(b)복수개의 알약이 놓여진 트레이를 향해 상기 카메라가 촬상하고, 촬상된 초기이미지가 별도의 중앙서버에 저장되는 단계;
(c)상기 중앙서버는 설정된 방식으로 상기 촬상된 이미지의 주변 영역을 절단한 후 이미지1을 저장하는 단계;
(d)상기 중앙서버는 상기 이미지1에 대해 설정된 밝기(brightness)와 대조(contrast)를 적용하여 이미지2를 저장하는 단계;
(e)상기 중앙서버는 상기 이미지2를 그레이스케일 이미지로 변환하여 이미지3을 저장하는 단계;
(f)상기 중앙서버는 상기 이미지3의 노이즈를 제거하기 위해 상기 이미지3의 영상 중 픽셀값이 0인 검은색 픽셀은 흰색의 픽셀로, 상기 이미지3의 영상 중 픽셀값이 1이상 254 이하인 픽셀은 검은색 픽셀로 변환하여 이미지4를 저장하는 단계;
(g)상기 중앙서버는 상기 이미지4에서 서로 접촉되어 있는 흰색 픽셀로 이루어진 알약 이미지를 분리하기 위해 거리변환(distance transform) 알고리즘을 적용하여 이미지5를 저장하는 단계;
(h)상기 중앙서버는 알약의 종류에 따라 기 설정된 임계값을 적용하여, 임계값 이하의 픽셀값을 갖는 픽셀들을 검은색으로 변환하고 임계값을 초과하는 픽셀값을 갖는 픽셀들을 흰색으로 변환하여 이미지6을 저장하는 단계;
(i)상기 중앙서버는 OpenCV 프로그램을 이용하여 상기 이미지6에서 흰색 영역에 대한 면적, 중심좌표, 바운드 박스 크기를 포함한 정보를 획득하는 단계; 및
(j)상기 중앙서버는 설정된 알약 크기(면적)를 이용하여 상기 (i)단계에서 획득한 각 흰색 영역의 크기와 비교하여 설정된 오차 범위 내인 경우 녹색으로 표시하고, 설정된 오차 범위를 초과하는 경우 녹색 이외의 다른 색으로 표시하는 단계;를 포함하고,
상기 이미지3에서 알약은 검은색으로 표현되고,
상기 이미지4에서 알약은 흰색으로 표현되고,
상기 거리변환 알고리즘을 통해 상기 이미지4는, 각 픽셀이 해당 픽셀과 가장 가까운 검은색 픽셀 간의 거리값에 대응하여 0이상 254 이하의 픽셀값으로 변환되어 상기 이미지5로 저장되고,
상기 거리변환 알고리즘을 적용하여 저장된 상기 이미지5에서, 알약의 중앙은 알약의 가장자리보다 흰색에 더 가깝게 표현되고, 알약의 가장자리는 알약의 중앙보다 검은색에 더 가깝게 표현되어, 상기 이미지5에서 알약은 회색조로 표현되고 알약이 서로 접하는 부분일수록 검은색에 더 가깝게 표현되고,
상기 이미지6에서 흰색으로 표현되는 알약의 크기는, 상기 이미지4에서 흰색으로 표현되는 알약보다 더 축소된 것을 특징으로 하는, 알약 계수 이미지 프로세싱 방법.
In the pill counting image processing method,
(a) Setting the parameters of a camera positioned toward a plurality of pills to a set reference value;
(b) taking an image by the camera toward the tray on which a plurality of pills are placed, and storing the captured initial image in a separate central server;
(c) the central server cutting the surrounding area of the captured image in a set manner and then storing image 1;
(d) storing image 2 by applying brightness and contrast set to image 1 by the central server;
(e) the central server converting image 2 into a grayscale image and storing image 3;
(f) In order to remove the noise of the image 3, the central server converts black pixels having a pixel value of 0 in the image 3 to white pixels, and pixels having a pixel value of 1 or more and 254 or less in the image 3. Converting to black pixels and saving image 4;
(g) storing image 5 by applying a distance transform algorithm to separate pill images composed of white pixels in contact with each other in the central server in image 4;
(h) The central server applies a preset threshold according to the type of pill, converts pixels with pixel values below the threshold to black, and converts pixels with pixel values exceeding the threshold to white. Saving image 6;
(i) obtaining, by the central server, information including the area, center coordinates, and bounding box size of the white area in the image 6 using the OpenCV program; and
(j) The central server compares the size of each white area obtained in step (i) using the set pill size (area), and displays it in green if it is within the set error range, and green if it exceeds the set error range. Including a step of displaying in a color other than that of
In Image 3 above, the pill is expressed in black,
In image 4 above, the pill is expressed in white,
Through the distance conversion algorithm, the image 4 is converted into a pixel value of 0 or more and 254 or less in correspondence with the distance value between each pixel and the closest black pixel, and is stored as the image 5,
In Image 5 saved by applying the distance conversion algorithm, the center of the pill is expressed closer to white than the edge of the pill, and the edge of the pill is expressed closer to black than the center of the pill, so in Image 5, the pill is It is expressed in grayscale, and the parts where the pills come into contact with each other are expressed closer to black.
The pill counting image processing method of claim 1 , wherein the size of the white pill in image 6 is smaller than that of the white pill in image 4.
청구항 1에 있어서,
상기 (a)단계에서의 상기 카메라에 의해 촬상되는 이미지의 파라미터 각각은 이미지 폭(가로)은 640mm, 이미지 높이(세로)는 480mm, 카메라 밝기는 0, 카메라 대조는 100, 카메라 감마는 30, 카메라 색상은 -90, 카메라 채도는 0인 것을 특징으로 하고,
상기 (d)단계에서의 설정된 밝기는 10이고, 설정된 대조는 60인 것을 특징으로 하는, 알약 계수 이미지 프로세싱 방법.
In claim 1,
Each of the parameters of the image taken by the camera in the step (a) is image width (width) of 640 mm, image height (length) of 480 mm, camera brightness of 0, camera contrast of 100, camera gamma of 30, camera It is characterized by a color of -90 and a camera saturation of 0.
The pill counting image processing method according to claim 1 , wherein the brightness set in step (d) is 10 and the contrast set is 60.
청구항 2에 있어서,
상기 (c)단계에서의 설정된 방식은, 상기 초기이미지에서 검은색으로 표현된 알약 이미지가 모두 포함되도록 상기 초기이미지를 중심으로 좌상단과 우하단에 각각 폭과 높이를 표현되는 좌표에 의해 구획되는 사각형 이미지로 주변 영역이 절단되고 상기 이미지1이 저장되는 것을 특징으로 하는, 알약 계수 이미지 프로세싱 방법.
In claim 2,
The method set in the step (c) is a rectangle delimited by coordinates representing width and height at the upper left corner and lower right corner of the initial image so that all of the pill images represented in black are included in the initial image. A pill counting image processing method characterized in that a peripheral region is cut out into an image and the image 1 is stored.
삭제delete 삭제delete 청구항 1에 있어서,
상기 (j)단계에서는,
설정된 오차 범위 내의 하한 미만인 경우 노랑색으로 표시한 뒤, 사용자에게 경고하고, 오차 범위 내의 상한 초과인 경우 알약의 갯수는 해당 면적을 기준면적으로 나눈 몫으로 표시한 뒤 적색으로 표시하여 사용자에게 경고하는 것을 특징으로 하는, 알약 계수 이미지 프로세싱 방법.
In claim 1,
In step (j) above,
If it is less than the lower limit within the set error range, it is displayed in yellow and warns the user, and if it exceeds the upper limit within the error range, the number of pills is displayed as the quotient of the area divided by the reference area, and then displayed in red to warn the user. Characterized by a pill counting image processing method.
KR1020210002593A 2021-01-08 2021-01-08 Image processing method for counting pill KR102576853B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020210002593A KR102576853B1 (en) 2021-01-08 2021-01-08 Image processing method for counting pill

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020210002593A KR102576853B1 (en) 2021-01-08 2021-01-08 Image processing method for counting pill

Publications (2)

Publication Number Publication Date
KR20220100302A KR20220100302A (en) 2022-07-15
KR102576853B1 true KR102576853B1 (en) 2023-09-08

Family

ID=82401114

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210002593A KR102576853B1 (en) 2021-01-08 2021-01-08 Image processing method for counting pill

Country Status (1)

Country Link
KR (1) KR102576853B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116306764B (en) * 2023-03-22 2023-11-14 北京京瀚禹电子工程技术有限公司 Electronic component counting system based on machine vision

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060088196A1 (en) * 2004-10-25 2006-04-27 Popovich Joseph Jr Embedded imaging and control system
US20150302255A1 (en) * 2012-01-23 2015-10-22 Perceptimed, Inc. Automated Pharmaceutical Pill Identification
US20180260665A1 (en) * 2017-03-07 2018-09-13 Board Of Trustees Of Michigan State University Deep learning system for recognizing pills in images

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101286586B1 (en) 2011-10-18 2013-07-22 한국과학기술원 Hybrid communication network system based on Beam Division Multiple Access for efficient resource assignment and providing method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060088196A1 (en) * 2004-10-25 2006-04-27 Popovich Joseph Jr Embedded imaging and control system
US20150302255A1 (en) * 2012-01-23 2015-10-22 Perceptimed, Inc. Automated Pharmaceutical Pill Identification
US20180260665A1 (en) * 2017-03-07 2018-09-13 Board Of Trustees Of Michigan State University Deep learning system for recognizing pills in images

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Boonyarat Viriyasaksathian, "Automatic counting method using fast radial symmetry transform", 2008 IEEE International Conference on Robotics and Biomimetics (2009.02.22-25)*

Also Published As

Publication number Publication date
KR20220100302A (en) 2022-07-15

Similar Documents

Publication Publication Date Title
JP6409094B2 (en) Automated pharmaceutical tablet identification
US8712163B1 (en) Pill identification and counterfeit detection method
US9904992B2 (en) Packeted drug inspection device and method
JP5163985B2 (en) Granular product type inspection device
JP2019076787A (en) Medicine photographing device
JP5997120B2 (en) Drug verification device, drug verification system, and drug verification method
JP7381954B2 (en) Image processing program and image processing device
KR102576853B1 (en) Image processing method for counting pill
EP3532391A1 (en) System and method for automatic inspection and classification of discrete items
US11776673B2 (en) System and method for augmented reality detection of loose pharmacy items
CA3013602C (en) Method of monitoring medication regimen with portable apparatus
JP4300809B2 (en) Inspection apparatus and inspection method for granular object
CN109074856A (en) Unit dose package medicament inspection apparatus, unit dose package medicament auditing system, unit dose package pharmacy information output method and unit dose package pharmacy information output program
TW202008981A (en) Method of monitoring medication regimen complemented with portable apparatus
CN114388094A (en) Identification and verification of drugs
JP7310045B1 (en) Single-package inspection device, single-package inspection program, and single-package inspection method
JP6491776B1 (en) Tablet recognition or identification system and method
Hsu et al. Real-Time Pill Identification with Prescription Confirmation Using Deep Learning on Embedded System
CN114845682A (en) Image processing apparatus and method
CN116171461A (en) Stacked object identification method, stacked object identification device, stacked object identification equipment and computer storage medium
CN116306765A (en) Device, method and system for counting targets in partitioned area based on rapid instance partitioning
CN110827933A (en) Tablet taking assisting method realized by mobile device

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant