I wish to use QR codes in a PhoneGap-based mobile app. There are several ways to generate QR codes using javascript. I'm using Jerome Etienne's jquery-based solution.
I'm looking for a pure Javascript solution or a set of PhoneGap plugins for the camera-enabled platforms that will read QR encoded data in an image.
So far all I've found is a demo by LazarSoft. Are there any other solutions?
This is the current go to library for barcode scanning:
https://github.com/wildabeast/BarcodeScanner
Now the official cross-platform BarcodeScanner for Cordova / PhoneGap
https://github.com/phonegap/phonegap-plugin-barcodescanner
UPDATE I finally put up my demo using jsqrcode. Try it here.
These http://www.webqr.com/ guys have actually ported the ZXing qrcode scanner to javascript https://github.com/LazarSoft/jsqrcode !!
The only thing you need the flash thing for is to use the webcam (in their examples). The javascript decode and detection works on canvas elements.
I'm currently using the HTML5 Camera API and the javascript bits from LazarSoft to detect and decode QR codes in the browser. Pure web :-D
For desktop testing set the Enable MediaStream flag under chrome:flags, or get the camera bundled client from Opera Labs http://snapshot.opera.com/labs/camera/
See also this Tutorial which shows how to make a PhoneGap app using the Barcode Scanner plugin that uses the Zebra Crossing library
This one looks nice. According with their own description:
Using Lazar Laszlo's port of ZXing Java library, QCodeDecoder brings
to the web a great interface for dealing with QRCode decoding, being
usable both on desktops and mobile phones.
Demo: http://cirocosta.github.io/qcode-decoder/
Repository: https://github.com/cirocosta/qcode-decoder
Check these out:
http://openalexandria.com/2010/10/qrcode-decode-javascript-read-qr-code-with-javascript
http://pt.sourceforge.jp/projects/jpqr