Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overload the decode function with param of file buff #6

Open
zeroleo12345 opened this issue Mar 10, 2017 · 1 comment
Open

overload the decode function with param of file buff #6

zeroleo12345 opened this issue Mar 10, 2017 · 1 comment

Comments

@zeroleo12345
Copy link

nowadays the function "decode" only with param of filename,
Please consider overload the decode function with the param of raw buff.

@VeNoMouS
Copy link

@zeroleo12345 use io.BytesIO() from io

ie, saving with PILLOW to the io object

our_image = io.BytesIO()

im.save(our_image, format="PNG")

qr = qrtools.QR()
qr.decode(our_image)
print qr.data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants