aerospaceresearch / gcp-osm

Ground Control Points for OpenStreetMap
MIT License
4 stars 2 forks source link

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

Open hornig opened 5 years ago

hornig commented 5 years ago

https://github.com/aerospaceresearch/gcp-osm/blob/00cec7f5a2620c6296199c3b48b5c3da4af02d50/main.py#L44-L50

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

quantenProjects commented 5 years ago

At the moment (5760496adb63de6adabd0b1c5bf82e4c49883281) 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] https://github.com/aerospaceresearch/gcp-osm/blob/c7153fce922147f6fdb3fa92474cb97ce0965a2e/main.py#L28