pablohirafuji/elm-qrcode

decoding qr codes

Opened this issue · 3 comments

first of all, great job!

one question, somehow related;

i'm willing to create an app having a qr code scanner option;
the input will be trivial (a video stream or file upload) - in the end a binary string that is beeing send to elm via ports;

does the current code can manage this data and do the reverse of what the actual behaviour does, decode instead of encode ?

Hey, thanks!

Currently the package does not decode, only encode. I will see what I can do to implement a decoder, but I am really busy at the moment, so it will take some time!

I will see what I can do to implement a decoder, but I am really busy at the moment, so it will take some time!

Here 6 years later I could also use this functionality. Any chance you will give this a go?

Sorry, I have no plan to implement it. The web has evolved since then and now has a native API that you can try: https://developer.mozilla.org/en-US/docs/Web/API/Barcode_Detection_API