We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.
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!
Mableton, Georgia, USA
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 ?
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.
If there were only a world full of developers like yourself
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.
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.
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!
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 a MILLION for the post.
I am sure many will find this extremely usefull. Please could you send me the Flash Pro version to phinrich.at.nnr.co.za
I wrote a post about QR Reader ANE that Brad is telling. Brad helped me a lot for my project and i wanted to spread his name and sample.
Here is the post you can find sample of Brad5151 : http://www.nativext.com/ane-by-os/ios/qr-reader-native-extension/
The native extension works extremely fast and reliable.
Again, thank you Brad.
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.
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.
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.
This sounds really nice!
Would also be interested to get my hands on this one
Looking forward to that thanks. If I can get it working in pure Flash then I will also post.
Please find the ANE at http://code.google.com/p/adobe-air-qr-barcode-zbar-ane/ I have kept the precompiled ane in downloads section. Sample can be seen in Wiki or a working project can be found in Sources.
Looks nice, thanks for your project.. At the moment i'm using Flash CS6 for developing ios apps.
I get some errors while trying compiling without Flex.
Do you have a little sample for Flash CS6? Thank you..
p.s. the error code (1067) i get is in this line: s.setTargetArea(350,"0xFF0000FF","0xFFABCDEF"); -> "converting string to int not possible"
p.s.s. if i remove the "" at colors, i can start publishing on device. but there is a second problem: An implemention for native extension "com.sbhave.nativeExtensions.zbar" required by the application was not found for the target platform. i'm using mac for publishing.. whats wrong?
I had uploaded an old binary in downloads section.
Can you try by downloading the ane again (As I have updated it now)
For flash sample Just use the Sample Usage as your startup class and run the application.It should work [Dont forget to Include and Link the ANE]
Also please go through the API wiki which lists all the modifications required.
Thanks a million for this.
I am having some issues though.
Running in Flash CS6, I have the .fla with your .ane in the library path. I then have both reader.as and Scanner.as in the same folder as the .fla. I am getting the error.
"The name of package com.sbhave.nativeExtensions.zbar does not reflect the location of this file ....."
This usualy means I need to place the Scanner.as file in a certain file structuire dictated by the rror message. However when I nest it there then the error is that it cant find Scanner.as
You dont need to explicitly use scanner.as. scanner.as will be available to you as part of ane only. Just use the ane correctly. You can google or youtube to see how we can link ane in Flash CS6
Ok so I took out the Scanner.as. I know how to add the ane and it is there. It launches on my Samsung Galaxy S2 but does not open the camera. The result is that on clicking the singlescan or multiscan button I get "Launched False". I did specify Camera in the permissions. I seem to remember you saying we had to add something extra to the App Manifest file. Which I have not done.
I suppose this could be the reason. Let me try again.
Still dont see the camera and still get "Launched:false"
I am probably not adding to the maifest correctly.
I am not clear on how to add to the Manifest file.