(Comments)
In this post, I will show you how to read QR Code from image using python
We will be using the open source app "qrtools" to read image.
Install zbar systemwide
sudo apt-get install libzbar-dev
Then create virtualenv and then install requirements
pip install pypng zbar pillow qrtools
Where pypng, zbar and pillow are the dependencies required by qrtools.
Code to read QR Code from Image:
import qrtools qr = qrtools.QR() qr.decode("QR_Code.png") s = qr.data print("The decoded QR code is: %s" % s)
We develop web applications to our customers using python/django/angular.
Contact us at hello@cowhite.com
Comments