QR code scanning library/external/widget?

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ClipArtGuy
Posts: 253
Joined: Wed Aug 19, 2015 4:29 pm

QR code scanning library/external/widget?

Post by ClipArtGuy » Sat Aug 26, 2017 7:10 pm

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!

[-hh]
VIP Livecode Opensource Backer
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?

Post by [-hh] » Sun Aug 27, 2017 12:56 am

.... 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

SparkOut
Posts: 2852
Joined: Sun Sep 23, 2007 4:58 pm

Re: QR code scanning library/external/widget?

Post by SparkOut » Sun Aug 27, 2017 8:36 am

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.

ClipArtGuy
Posts: 253
Joined: Wed Aug 19, 2015 4:29 pm

Re: QR code scanning library/external/widget?

Post by ClipArtGuy » Sun Sep 03, 2017 8:57 pm

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!

[-hh]
VIP Livecode Opensource Backer
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?

Post by [-hh] » Mon Sep 04, 2017 2:06 am

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
shiftLock happens

Post Reply

Return to “Android Deployment”