LazarSoft / jsqrcode

Javascript QRCode scanner
http://www.webqr.com
Apache License 2.0
3.99k stars 1.16k forks source link

Position #10

Open unknowndomain opened 11 years ago

unknowndomain commented 11 years ago

Hello,

Thanks for writing this library, I am looking to experiment with it however it seems that it only decodes the QR Code and doesn't provide any of the other aspects like position.

Is it possible to do this?

Thanks

Tom

LazarSoft commented 11 years ago

Hi,

With some minor customization you can get the finder pattern coordinates. In the QRCode.js process function at some point the var qRCodeMatrix = detector.detect(); will store the bits and the finder / alignment pattern coordinates like: qRCodeMatrix.points. For more info see detector.js at the end of the file.

Laszlo

unknowndomain commented 11 years ago

Hmm, not really sure how to do that?

Sent from my iPad

On 13 May 2013, at 16:16, Lazar Laszlo notifications@github.com wrote:

Hi,

With some minor customization you can get the finder pattern coordinates. In the QRCode.js process function at some point the var qRCodeMatrix = detector.detect(); will store the bits and the finder / alignment pattern coordinates like: qRCodeMatrix.points. For more info see detector.js at the end of the file.

Laszlo

— Reply to this email directly or view it on GitHub.