QR Scanner

Problem with scanning QR Code (pure text) in German with German special characters (Umlaut)  !ANDROID ONLY!

Hi, I have a problem scanning pure text with german “umlaute” like ä ö ü.
The character will be shown as unreadable signs with a questionmark.
This only happens on android devices.

The provided sample QR Code should be returned as:

GE174567
FUN4FOUR

Hinterwir Müller
Freudstrasse 53
4600 Wels

sample_qr.jpg

Any ideas?
Thanks in advance
Andreas

Hi all, I just bought the plugin. it looks great on “paper”, but tried on my htc u11 (0.2s autofocus), i’m getting hard time to focus an QR CODE. it looks the autofocus of the device is not working and i need to move the device around trying to manual focus. some times i take more than 10s to get a proper reading. this is just unacceptable for a bussiness app i’m doing. the client is used to have less than an second reading, i can’t show him an alternative that takes forever to get readings. Is it there anything i can do on my side? if not can you activate the autofocus on the devices?

edit: *if i test a QR CODE on the screen it takes less than a second to detect. but on a papel is like i told it takes forever to detect.

Regards, Carlos.

unacceptable

unacceptable

pucman68, hi, I think I finally fixed the issue. The problem was that different QR code generators treat text encoding differently, and it’s hard to detect which encoding to use for text decoding.

Regarding autofocus, it’s implementation at the moment is not ideal due to compatibility issues with older devices. I will improve it eventually.

Hi Lerg,

did a quick test on the issue with german special chars and it seems to work now, thank you !!

Hi

I am using the Scanner like so - looking for just code93

qrscanner.show{topbar = {text = ‘Key 2 ID Barcode Scanner’}, symbols = {‘code93’},listener = qrListener}  

Which works.

On some Android devices , I find that the camera struggles to focus, sometimes does not even bother to focus at all. One device is the Samsung Tab 4, OS v 5.1.1.

Any ideas on how I can fix this?

Thanks

Following up on above - the Samsung Tab 4 model the client was testing on does not have auto focus! 

Hardware issue.

i doubt is only a hardware issue. i think the plugin just opens the camera and reads the codes. you need to move the phone around until you have a positive reading. in my testing on my htc u11 (have an ultra-fast focus) , focus doesn’t work on this plugin. on the plugin defense, i tried other apps with similar qr code readers (not dedicated apps for reading qr codes), and they all had the same problem. i think one thing is opening the camera, other is having access to all sensors the camera have. 

I used after a long time.  Then a problem occurred by a link of Android.

Was the parameter changed to 1 from 2?

Even 2 parameters were no problem in iOS.

But an error has occurred in Android.

If so trying to read a document, a web site is an error and a document can’t be read.

web site restored, so a document is being read, but it’s very difficult.

Only an exercise of Github is a reliance, but anything isn’t described.

For example how many error types is there in event.isError?

There were 3 error handlings before, but what kind of error is there at present?

-> no_permission_err

-> no_camera_err

-> unknown_error_err

Hello Lerg,

great plugin, but could you please make it so that the top string (“Scanner”) and the “Cancel” button are translatable? Our app is for the asian market and it would definitely cause problems to have them in english. That is the only part we cannot translate at the moment.

Thanks!

Lerg, I have a request (if it’s not done already).

Could you please implement a way to handle the situation when the app does not have a camera permission? Either ask the user directly to change the permission (don’t know if this is possible in iOS) or just a message (customizable of course) telling the user that he has to give camera permissons to the app.

Thanks!

I have recently discovered that some QR codes does not seem to be recognized by the QR scanner.

I use the QRGenerator library (https://forums.coronalabs.com/topic/65821-qrgenerator-for-corona/) to generate QR images for sharing data between devices and one of the QR images looks like the attached png file.

The data that was generated in this JSON-encoded data:

{"l":44,"w":[{"a":"one","b":"en"},{"a":"two","b":"to"},{"a":"three","b":"tre"},{"a":"four","b":"fire"},{"a":"five","b":"fem"},{"a":"six","b":"seks"},{"a":"seven","b":"sju"},{"a":"eight","b":"åtte"},{"a":"nine","b":"ni"},{"a":"ten","b":"to"},{"a":"eleven","b":"elleve"},{"a":"twelve","b":"tolv"},{"a":"thirteen","b":"tretten"},{"a":"fourteen","b":"fjorten"},{"a":"fifteen","b":"femten"}],"n":"test123"}

When using QR scanner this image doesn’t seem to be recognized as a QR code at all, but the app QR Droid doesn’t seem to have any problems with it:

https://www.youtube.com/watch?v=-eHkD3HMLFs

The docs doesn’t seem to be available anymore, so I cannot check, but have only used a simple ‘qr’ in the symbol list and it usually works well.

 qrscanner.show { listener = qrListener, symbols = { 'qr' }, strings = { title = s.str("Scan the QR code!") } }

Do you have any explanation why the attached QR image is not readable?

I tried the full symbol list also, but it did not make any difference:

 qrscanner.show { listener = qrListener, symbols = { 'aztec', 'code39', 'code39mod43', 'code93', 'code128', 'codabar', 'databar', 'databar\_exp', 'datamatrix', 'ean8', 'ean13', 'interleaved2of5', 'itf14', 'i25', 'isbn10', 'isbn13', 'partial', 'pdf417', 'upca', 'upce' }, strings = { title = s.str("Scan the QR code!") } }

Link to the docs is here http://docs.spiralcodestudio.com/plugin/qrscanner/

At first I thought maybe there was some upper limit to the complexity of the QR code, but this one scans just fine:

And that is more complex than the problematic one.

{"l":44,"w":[{"a":"snake","b":"slange"},{"a":"monkey","b":"ape"},{"a":"donkey","b":"esel"},{"a":"duck","b":"and"},{"a":"armadillo","b":"beltedyr"},{"a":"platypus","b":"nebbdyr"},{"a":"sheep","b":"sau"},{"a":"horse","b":"hest"},{"a":"goat","b":"geit"},{"a":"frog","b":"frosk"},{"a":"cat","b":"katt"},{"a":"dog","b":"hund"},{"a":"turtle","b":"skilpadde"},{"a":"fox","b":"rev"},{"a":"seal","b":"sel"},{"a":"roaster","b":"hane"},{"a":"rabbit","b":"hare"},{"a":"eagle","b":"ørn"},{"a":"toad","b":"padde"},{"a":"unicorn","b":"enhjørning"}],"n":"test123"}

So I don’t see any pattern to this!

I think that maybe there is something wrong with the QR generator, because I’ve tried with a few scanners and most of them have problems with the “problem image”, even though QR Droid worked ok.

Problem is that I cannot get hold of the author  :huh:

I have created an application for several years using QRScanner.

I have done public events such as stamp rally many times in the suburbs of Tokyo, but no major problems have occurred.

However, if there is much data like runewinse, reading and printing are greatly affected by printing and display.

Besides, there is a fear that the data may be falsified by the prankster.

So I have included only the URL in the code.

The body of the data is downloaded with the key from the URL.

If you access the URL by another application, this ad for this event will be displayed.

And you do not have to read other QR codes by filtering the first part of the URL.

However, I still have incomplete error handling in the latest application.

I tried asking a question here but there is no reply, so I am forcing an event  :rolleyes:

There are so many users of iPhone in the event, so the problem has not become obvious yet  :unsure:

@articnetllc Scanner is translatable, it’s the text param to the show function. Cancel button is shown by the OS and is localized by the OS.

@CyberCatfish could you please rephrase what do you need? I am not sure if I understood you.

Lerg, I have traced the problems back to the luaqrcode library:

https://github.com/speedata/luaqrcode

The problem is now fixed and things are working. It was never a problem with QRScanner in the first place.

Sorry for the noise.