QR code scanning library/external/widget?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 253
- Joined: Wed Aug 19, 2015 4:29 pm
QR code scanning library/external/widget?
Hi everyone, I was just wondering if there existed an open source solution for scanning QR codes in Android? I'm aware of some third party services, but would prefer to stay within LC if at all possible. Thanks in advance!
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: QR code scanning library/external/widget?
.... Sorry, what I wrote here was wrong. I overlooked the word "scan".
Last edited by [-hh] on Sun Aug 27, 2017 1:53 pm, edited 1 time in total.
shiftLock happens
Re: QR code scanning library/external/widget?
Hi Hermann,
This is a technique for creating QR codes, which can also be done without accessing the google api online by using the sqirt library now included with livecode.
The OP wants to scan qr codes into lc, which will still (I think) need an external app. I believe some people have made some efforts in this direction but not sure how successfully.
This is a technique for creating QR codes, which can also be done without accessing the google api online by using the sqirt library now included with livecode.
The OP wants to scan qr codes into lc, which will still (I think) need an external app. I believe some people have made some efforts in this direction but not sure how successfully.
-
- Posts: 253
- Joined: Wed Aug 19, 2015 4:29 pm
Re: QR code scanning library/external/widget?
Thanks for the replies HH and SparkOut. Just to be clear I am looking for a way to scan QR codes from within LC. If there isn't a widget,external or library that adds this functionality, I guess my only option is to use a third party API. Anybody have any recommendations to that end? Thanks in advance!
-
- VIP Livecode Opensource Backer
- Posts: 2262
- Joined: Thu Feb 28, 2013 11:52 pm
- Location: Göttingen, DE
Re: QR code scanning library/external/widget?
I looked into that for a few hours. This will most probably work:
There is a port of the ZXing lib to javascript, see https://github.com/LazarSoft/jsqrcode
We could use that in a hidden browser widget.
The most difficult part is to use the snapshot from cam/webcam, not only from LC: One has to unskew/undistort the image --- or we have to wait until webkit/the browser widget (on Mac) can do a media access dialog and use the ZXing lib for that.
The decoding only from a 'proper' image is not this difficult.
p.s. For generating there is a very fast and high quality lib that produces also SVG:
https://www.nayuki.io/page/qr-code-generator-library
There is a port of the ZXing lib to javascript, see https://github.com/LazarSoft/jsqrcode
We could use that in a hidden browser widget.
The most difficult part is to use the snapshot from cam/webcam, not only from LC: One has to unskew/undistort the image --- or we have to wait until webkit/the browser widget (on Mac) can do a media access dialog and use the ZXing lib for that.
The decoding only from a 'proper' image is not this difficult.
p.s. For generating there is a very fast and high quality lib that produces also SVG:
https://www.nayuki.io/page/qr-code-generator-library
shiftLock happens