How to create a QR code reader in a HTML5 website?

Binay picture Binay · Jul 24, 2012 · Viewed 191.8k times · Source

I was looking for possibility to create QR code reader in my HTML5 based web page. I've done some googling and all the links point me to the mobile applications.

Please help me with some pointers as to how I can use HTML5 and JavaScript to read a QR code containing a url and then redirect the browser to that URL.

Answer

Terence Eden picture Terence Eden · Jul 25, 2012

There aren't many JavaScript decoders.

There is one at http://www.webqr.com/index.html

The easiest way is to run ZXing or similar on your server. You can then POST the image and get the decoded result back in the response.