Google app engine QR code decoder

匿名 (未验证) 提交于 2019-12-03 08:52:47

问题:

I was wondering if there is a good library for python for decoding QR code. Basically what I would like is to give library image with QR code on it and the library would output contents saved in image.

回答1:

I've looked before with no success. Two problems are that native c code can't be compiled and you can't get access to the file system.

pyqrcode didn't work out and neither did zxing.



回答2:

Have you already looked at : http://pyqrcode.sourceforge.net/

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



回答3:

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

As of August 17, 2011 the core image processing portion of ZBar hasn't been updated since 2009 but there is recent activity on the iPhone development part of the project, which I'll interpret as the core being stable. There's also some activity in the SourceForge forums for the project.

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



回答4:

Try qrtools , It has a nice enough 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 

Output

123456 text 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!