approach to successfully segment consumer-quality
pills with few limitations. Application of a resiz-
ing factor gave some promising results for algorithm
speed, with a trade-off in quality of mask.
Although the process has eliminated the back-
ground noise and produced excellent results for most
of the pills and capsules, the shadows caused by pill
illumination is still a challenge for some pills. Pills
with similar background color also pose a great chal-
lenge in boundary determination. Finding an adapt-
able solution that works for all 5000 pills is challeng-
ing. Further analysis needs to be done to get accurate
segmentation for all the consumer-quality pills.
This project was originally developed as an en-
try to the Pill Image Recognition Challenge con-
ducted by the National Library of Medicine. The
5000 consumer-quality image data- sets were ac-
cessed from the NLM database. Future work corre-
sponds to extraction of various features that are cru-
cial to match the given consumer-quality pill images
to their reference images using rank scoring.
REFERENCES
Achanta, R., Shaji, A., and Smith, K. (2012). SLIC
Superpixels Compared to State-of-the-Art Superpixel
Methods. Pattern Analysis and Machine Intelligence,
34(11):2274–2281.
Boykov, Y. Y. and Jolly, M. P. (2001). Interactive graph
cuts for optimal boundary amp; region segmentation
of objects in n-d images. In Computer Vision, 2001.
ICCV 2001. Proceedings. Eighth IEEE International
Conference on, volume 1, pages 105–112 vol.1.
C3PI (2016). Computational photogra-
phy project for pill identification.
https://lhncbc.nlm.nih.gov/project/c3pi-
computational-photography-project-pill-
identification. Last accessed on Aug 28, 2016.
Caban, J. J., Rosebrock, A., and Yoo, T. S. (2012). Auto-
matic identification of prescription drugs using shape
distribution models. In 2012 19th IEEE International
Conference on Image Processing, pages 1005–1008.
Comaniciu, D. and Meer, P. (2002). Mean shift: a robust
approach toward feature space analysis. IEEE Trans-
actions on Pattern Analysis and Machine Intelligence,
24(5):603–619.
Dailymedplus (2016). Medicos consultants.
http://www.dailymedplus.com. Last accessed on
Aug 28, 2016.
Drugs.com (2016). Pill identifier.
https://www.drugs.com/imprints.php. Last accessed
on Aug 28, 2016.
Felzenszwalb, P. F. and Huttenlocher, D. P. (2004). Effi-
cient graph-based image segmentation. International
Journal of Computer Vision, 59(2):167–181.
Kanungo, T., Mount, D. M., Netanyahu, N. S., Piatko,
C. D., Silverman, R., and Wu, A. Y. (2002). An ef-
ficient k-means clustering algorithm: analysis and im-
plementation. IEEE Transactions on Pattern Analysis
and Machine Intelligence, 24(7):881–892.
NLM (2016). National library of medicine
: Pill image recognition challenge.
http://pir.nlm.nih.gov/challenge/. Last accessed
on May 31, 2016.
Pillbox (2016). Prototype pill identification system.
http://pillbox.nlm.nih.gov/. Last accessed on Aug 28,
2016.
Shi, J. and Malik, J. (2000). Normalized cuts and image
segmentation. IEEE Transactions on Pattern Analysis
and Machine Intelligence, 22(8):888–905.
Tremeau, A. and Colantoni, P. (2000). Regions adjacency
graph applied to color image segmentation. IEEE
Transactions on Image Processing, 9(4):735–744.
van der Walt, S., Sch
¨
onberger, J. L., Nunez-Iglesias, J.,
Boulogne, F., Warner, J. D., Yager, N., Gouillart,
E., Yu, T., and the scikit-image contributors (2014).
scikit-image: image processing in Python. PeerJ,
2:e453.
WebMD (2016). Pill identifica-
tion. http://www.webmd.com/pill-
identification/default.html. Last accessed on Aug
28, 2016.
Xu, R. and Wunsch, D. (2005). Survey of clustering al-
gorithms. IEEE Transactions on Neural Networks,
16(3):645–678.
Real-world Pill Segmentation based on Superpixel Merge using Region Adjacency Graph
187