Smart Pharmacy using Raspberry Pi

SKU: PAN_RPI_011 Categories: ,


The retailers in the pharmacy usually face the problem of selling an expired product to the consumers which is really unsafe as it is done manually which can be replaced by a barcode system. In this project, we propose a system which makes less error and time taken to verify the stock availability of the medicines and its expiry date has been created by the use of IOT and raspberry pi with the help of barcodes


In general, a patient would give their prescription to the pharmacy, then a pharmacist get this prescription, seeks for the medicine and gives it to the patient. While giving the medicine to the patient, the pharmacist will check for expiry date manually and deliver it to the patient which can cause error at times by selling expired products to the patient. During this process, it takes lots of time on checking drug and it?s also unsafe for the patients So in this paper, we have introduced a system to check the details of the medicine such as the expiry date, stock availability, cost and name of the medicine by normal web camera and display the result in LCD screen and also by speech for output with the help of raspberry pi. The library which contains the barcode details has been first created by reading the barcode from the web camera which converts the image into grey image and by converting the barcodes into binary digits which forms an identity for the barcode. Using the barcode number obtained by conversion is used for storing the details of the medicine such as name of the medicine, stock availability, cost of the tablet and expiry date of the medicine using python language in raspberry pi that stores the details in the SD card which has been inserted in the raspberry pi kit. The purpose of this project is to make sure the safety for the patients by not selling the expired products to the patients and also to take a note of the stock availability by reducing the errors and time taken


In the existing system, to know the stock availability of a medicine the pharmacist has to check it manually from a database and also to know the details of the medicine such as its expiry date, cost and name of the medicine would be checked manually by reading the details which are on the medicine.


The time taken is more when it?s performed manually to check the stock availability of the medicine form a database, as we have to keep updating the stock availability for each time after selling a product. Since the process of checking is done manually by the pharmacist there are chances of errors to take place such as by selling the expired product to the patient which is very unsafe.


In the proposed system we are going to find the details of the medicine such as its stock availability, expiry date, cost and name of the medicine by use of barcodes which reads the detail of the medicine from the database that has been created by openCV to store in the SDcard of the raspberry pi kit and displays the result on the LCD screen, by this process the time taken for checking the stock availability and also there is no need for rechecking on expiry, cost and stock availability by single process. Since the process is done by machines there are lesser chances of making errors.


  • Detection is attained accurately
  • Less time consumption
  • Accuracy of output is increased


Smart Pharmacy using Raspberry Pi


Smart Pharmacy using Raspberry Pi


  • In this system Raspberry pi acts as the heart of the system.
  • Camera is interfaced with this raspberry pi to scan barcode which is placed on medicines
  • LCD displays output about the medicines condition


  • Raspberry pi
  • Camera
  • LCD16x2



[1] T. M. Lehmann, C. Gonner, and K. Spitzer, ?Survey: Interpolation methods in medical image processing,? IEEE Transactions on Medical Imaging, vol. 18, no. 11, pp. 1049-1075, Nov. 1999.

[2] T. Huang and R. Tsai, ?Multi-frame image restoration and registration,? Advances in computer vision and Image Processing, vol. 1, no. 2, pp. 317-339, 1984.

[3] S. Farsiu, M. D. Robinson, M. Elad, and P. Milanfar, ?Fast and robust multi-frame super resolution,? IEEE Transactions on Image Processing, vol. 13, no. 10, pp. 1327-1344, Oct. 2004.

[4] W. T. Freeman, T. R. Jones, and E. C. Pasztor, ?Examplebased superresolution,? IEEE Comput. Graph. Appl., vol. 22, no. 2, pp. 56-65, Apr. 2002.

[5] H. Chang, D. Yeung, and Y. Xiong, ?Super-resolution through neighbor embedding,? in Proc. CVPR, 2004, pp. 275-282.

[6] D. Glasner, S. Bagon, and M. Irani, ?Super-resolution from a single image,? in Proc. ICCV, 2009, pp. 349-356.

[7] J. Yang, J. Wright, T. Huang, and Y. Ma, ?Image superresolution via sparse representation, IEEE Transactions on Image Processing, vol.19, no.11, pp. 2861-2873, 2010.

[8] D.H. Trinh, M. Luong, F. Dibos, J.M. Rocchisani,C.D. Pham, and T. Q. Nguyen, ?Novel Example-Based Method for SuperResolution and Denoising of Medical images,? IEEE Transactions on Image Processing, vol. 23, no. 4, pp.1882-1895, 2014.

[9] S Tang, L. Xiao, P. Liu, et al., ?Edge and color preserving single image superresolution,? Journal of Electronic Imaging, vol. 23, no. 3, 033002, 2014.

[10] Lakshman H, Lim W Q, Schwarz H, et al. , ?Image interpolation using shearlet based sparsity priors,? ICIP, 2013, pp. 655-659.

[11] David R. Hardoon , Sandor Szedmak and John ShaweTaylor, Canonical correlation analysis: An overview with application to learning methods,? Neural Computation, vol. 16, no. 12, pp. 2639-2664, 2004. [12] Mairal J, Bach F, Ponce J, Sapiro G, ?Online dictionary learning for sparse coding,? ACM International Conference on Machine Learning, 2009, pp. 689-696.


Customer Reviews

There are no reviews yet.

Be the first to review “Smart Pharmacy using Raspberry Pi”

Your email address will not be published. Required fields are marked *