lubo / zxinglight

A simple wrapper for ZXing C++
MIT License
8 stars 3 forks source link

Add possibility to get barcode-details in python #4

Open jkrenzer opened 6 years ago

jkrenzer commented 6 years ago

Hi!

It would be really helpfully to make the details of the barcodes (raw, type, points) as provided by ZXing-cpp accessible to the python-user. Use-cases are f.e. overlay of a tooltip wiht barcode-data and meta-information in a scanned document.

Possible solution without breaking running projects would be another function for getting all barcodes with details.

Cheers

Jörn

lubo commented 6 years ago

Hi, @jkrenzer. I like this idea, but I'm currently not interested in implementing it myself. As always, pull requests are welcome.

kousu commented 5 years ago

I want this too. I'm going to implement it. I want to be able to do https://cozmo.github.io/jsQR/ in python.

kousu commented 5 years ago

I've implemented this in https://github.com/lubo/zxinglight/pull/8!

kousu commented 5 years ago

Something that my PR doesn't cover (and which is a much bigger issue) is text vs binary mode. My intuition is that a binary mode QR code should read as bytes, and all other modes as str (or unicode for python2).

kousu commented 5 years ago

11 is a subtask of this. Once #8 is merged I'll patch it to add tenative support for paging.