Google QR Code Converter

I was wondering if there is a good python library for decoding a QR code. Basically, I would like to provide a library image with a QR code on it, and the library will output the contents stored on the image.

+4
source share
4 answers

I looked before without success. Two problems are that the native c code cannot be compiled, and you cannot access the file system.

pyqrcode did not work and did not zxing.

+2
source

You have already looked: http://pyqrcode.sourceforge.net/

If compiling the code does not work for you, then there is also a clean python implementation at: http://github.com/hcvst/pyqr

+4
source

If you are still looking for something to do this in a year, you should check out the ZBar project at http://zbar.sourceforge.net/ . It looks like it started for 1-D barcodes, but has been expanded to include QR. It is licensed under C, LGPL, and in addition to the source there are binaries for Linux, Windows and iPhone. Bindings are available for Python, Perl, Ruby.

As of August 17, 2011, the main part of ZBar image processing has not been updated since 2009, but currently there is a project regarding iPhone development that I will interpret as a stable core. There is also activity on the SourceForge forums for the project.

It is also possible that pyxing (https://github.com/holizz/pyxing) will work, but all that is is an initial port check, so it is up to the (possible) user to check it.

+3
source

Try qrtools , It has a pretty nice interface

from qrtools import QR myCode = QR(filename=u"/home/psutton/Documents/Python/qrcodes/qrcode.png") if myCode.decode(): print myCode.data print myCode.data_type 

Exit

 123456 text 
+1
source

Source: https://habr.com/ru/post/899421/


All Articles