Skip to main content
Inspiring
Jun 11, 2012 3:25 PM UTC
Question

QR Code reader on Mobile Device...

I'm desperate here -- I have no idea why I can't get this to work, but I really need some help...

I've tried writing a custom QR-Code reader app for iOS and Android, and I can't get any app any where to recognize a QR-Code...

It *seems* to run OK, but it just never decodes any data -- always comes back with "nothing decoded" if it comes back at all...

I've tried the  ZXing library available on Google, and I've tried the one at LibSpark.org.  Neither of them will ever detect a QR-Code, and the ZXing library runs so incredibly slowly that it's useless anyway -- 7 to 10 seconds to process one image and tell me there's no QR-Code in there, when I know full well there is?  Ridiculous!

So, has anyone out there actually gotten a QR-Code reader app to work successfully?  One where you DON'T have to "click" a button to take a picture, but where it will simply scan the video input and will auto-detect when a QR-Code is in the video frame?

If so, I'd REALLY like to ask you how you did it, and even see some source-code if at all possible...

Thanks a bunch!

Laurence MacNeill

Mableton, Georgia, USA

This topic is closed to new replies. Start a new post to keep the conversation going.

51 replies

Participant
Nov 22, 2020 5:11 PM UTC

Fortunately, there are apps where you can do this, just open playstore or the appstore, then type in search, "qr code scanner" and there will be a lot of apps which all work properly. I tried some of them and they work perfectly.

Translate
sbhave
Participating Frequently
Dec 5, 2014 4:10 AM UTC

Hi:

I have updated the Library with new Set of APIs So that,

You can place the Scanner Preview on the Stage(Similar to StageWebView) and have your own UX around it. Also Localize in the way application desires.

Translate
Participant
Dec 4, 2014 2:38 PM UTC

Hello. I have to do a barcode scaner app, so i tried to use this, but i can't get it to work.

I mostly get "Error #1014: Class com.sbhave.nativeExtensions.zbar::Scanner could not be found." at this point.

Edit : nvm, just had to include the ANE into the packages.

thanks anyway, some good pointers on this thread.

Translate
Participating Frequently
Jul 23, 2013 8:16 PM UTC

Friends, please I need example project

any

Thank you

Translate
sbhave
Participating Frequently
Jul 24, 2013 6:02 AM UTC

If you are familiar with intelliJ, i have migrated the repo to intelliJ on github,

https://github.com/saumitrabhave/qr-zbar-ane

It includes example as well

Translate
Participating Frequently
Jul 24, 2013 6:17 AM UTC

I am not familiar with intellij but will take a look.

Thanks

Paul

Translate
sbhave
Participating Frequently
Feb 14, 2013 6:20 AM UTC

I have written ANE version for ZBar that works on Android and iOS over same ActionScript API. It works similar to CameraUI i.e. I open Native Activity/ViewController that scans and sends the data to AIR app as an async event.

I have developed this for one of my projects. If anyone is interested revert back on this thread.

Regards,

sbhave

Translate
Participating Frequently
Feb 14, 2013 6:49 AM UTC

Hi Sbhave

Congratulations on your ANE. I have been trying to do this for quite a while as you can see by my posts above. Afraid what I have is not quite good enough. Any chance of sharing your build ? I code in pure Flash and not Flex but I dont know if I can use your Flex code but am keen to try.

Thanks again

Paul Hinrichsen

Translate
sbhave
Participating Frequently
Feb 14, 2013 8:54 AM UTC

Cool. I will soon put the source code, binaries, samples and some docs on google code project. I will share the project link in a day or two.

Translate
Participating Frequently
Jul 22, 2012 11:52 AM UTC

Hi Laurence.

Send me an e-mail and I will mail my QR code reader source to you. It decodes very quickly however you need to programme an action upon read.

Paul

phinrich.at.nnr.co.za

Translate
Known Participant
Sep 14, 2012 9:30 PM UTC

Here is a QR Reader ANE for iOS only. It worked great for me. Very speedy. It comes with a Flex sample project.

Its very easy to translate to Flash Pro but still if it can save anyone some time, leave your email and i'll send you the sample Flash Pro project I created.

Now I just need an android ANE!

http://code.google.com/p/qr-zbar-ane/

Translate
Participating Frequently
Sep 17, 2012 7:18 AM UTC

Hi

Hope this reaches you.

Thanks for the post about the QR Code reader for IOs. Any chance of sending me the Flash Pro version.

Thanks

Paul

Translate
Participating Frequently
Jul 22, 2012 11:48 AM UTC

Hi Laurence .

I can mail you a working AS3 QR code reader if I had your e-mail address. I spent MONTHS looking for one. Eventually found one which worked. I modified it a bit and it still needs some work but it is very quick at decoding a QR code.

I see you posted about the camera issue with images lying on their side. I am desperatley looking for a fix here. Any ideas ?

My e-mail address is phinrich.at.nnr.co.za

Send me a mail and I can sent the QR code reader which I have put together.

regards

Paul

Translate
Inspiring
Jun 12, 2012 1:03 PM UTC

Wish I could be more help here...  but I tried to do it as well a few months back and kept hitting roadblocks. 

If you get anywhere with this ... can you PLEASE post how and an example maybe ?

Translate
Inspiring
Jun 12, 2012 1:48 PM UTC

I absolutely will post an example if I figure this out.  This has been extremely frustrating, and if I can help people avoid this mess, I'll be only too happy to do that.

L.

Translate
Inspiring
Jun 12, 2012 1:54 PM UTC

If there were only a world full of developers like yourself

Translate