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

Check what will happen when multiple QRs are in one image! #4

Open
hornig opened this issue Jun 16, 2019 · 1 comment
Open

Check what will happen when multiple QRs are in one image! #4

hornig opened this issue Jun 16, 2019 · 1 comment
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@hornig
Copy link
Contributor

hornig commented Jun 16, 2019

gcp-osm/main.py

Lines 44 to 50 in 00cec7f

if os.path.isdir(args.file):
print("loading in all files in folder:", filename)
processing_files = gcposm.utils.get_all_files(filename)
elif os.path.isfile(args.file):
print("loading in this file:", filename)
processing_files = gcposm.utils.get_one_file(filename)

it is now working for one QR per image.
please check if it works when two or more QR codes are in one image.

@hornig hornig added help wanted Extra attention is needed question Further information is requested labels Jun 16, 2019
@quantenProjects
Copy link
Contributor

At the moment (5760496) the reader.decode(file, True) [1] will return None, as there where no QR-Code in the image. Afairc the zxing libary dlenski/python-zxing doesn't support multiple QR-Codes in one image. We may need to implement the wrapper function ourself: https://zxing.github.io/zxing/apidocs/com/google/zxing/multi/qrcode/QRCodeMultiReader.html

[1]

barcode = reader.decode(file, True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants