Smart Pharmacy using Raspberry Pi

Ask For Price


Smart Pharmacy using Raspberry Pi

Smart Pharmacy – 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 and can be replaced by a barcode system. In this project, we propose a system that makes fewer errors and time taken to verify the stock availability of the medicines and their expiry date has been created by the use of IoT and raspberry pi with the help of barcodes

Smart Pharmacy using Raspberry Pi


In general, a patient would give their prescription to the pharmacy, then a pharmacist gets this prescription, seeks the medicine, and gives it to the patient. While giving the medicine to the patient, the pharmacist will check for the expiry date manually and deliver it to the patient which can cause an error at times by selling expired products to the patient. During this process, it takes lots of time on checking drugs 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 a grey image and by converting the barcodes into binary digits which forms an identity for the barcode. Using the barcode number obtained by the conversion is used for storing the details of the medicine such as the name of the medicine, stock availability, cost of the tablet, and expiry date of the medicine using python language in a 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 of the patients by not selling expired products to the patients and also to take note of the stock availability by reducing the errors and time taken Smart Pharmacy using Raspberry Pi

Smart Pharmacy using Raspberry Pi


In the existing system, to know the stock availability of 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 medicine would be checked manually by reading the details which are on the medicine. Smart Pharmacy using Raspberry Pi


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

Smart Pharmacy using Raspberry Pi


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 a single process. Since the process is done by machines there are lesser chances of making errors. Smart Pharmacy


  • 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.
  • The camera is interfaced with this raspberry pi to scan the barcode which is placed on medicines
  • LCD displays output about the condition of the medicines


  • Raspberry pi
  • Camera
  • LCD16x2

Smart Pharmacy



[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, ?The 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, ?Example-based super-resolution,? 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 Shawe-Taylor, 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 *