Xperia 10ii cannot scan green barcode

REPRODUCIBILITY: 100%
OS VERSION: 4.4.0.58
HARDWARE: Xperia 10 ii
UI LANGUAGE: EN
REGRESSION: New

DESCRIPTION:

In a French train I tried to scan this QR code:

I could not scan it, neither with the Camera app, nor with CodeReader. In the Telegram group someone suggested to change the colours (darker, higher contrast) of the photo. CodeReader still could not read it.

PRECONDITIONS:

STEPS TO REPRODUCE:

Try to scan a green barcode. Others have tried to scan the same image without result.

EXPECTED RESULT:

A scanned barcode

ACTUAL RESULT:

Nothing

MODIFICATIONS:

ADDITIONAL INFORMATION:

An Android app “QR Scanner”, installed through F-Droid, could actually scan the barcode. Android phones and iPhones as well.

1 Like

I was able to scan with Fennec/Firefox, but indeed no way to get a result with the Camera App or CodeReader.

1 Like

It doesn’t seem to work even when converted to grayscale, so i’m not so sure the color has anything to do with it.
Edit: and i tried two different online ZXing-backed “scanners”, and neither picked it up.

3 Likes

but inverted works…
I did: advanced cam → negative → shot. Then scan from gallery…

5 Likes

Thanks for taking the trouble to capture a photo of the offending QR code @rob_kouw. This seems like an interesting bug.

From what I can tell, the issue isn’t the green background, but rather the white QR code. I wasn’t able to get a white QR code to scan using the in-built scanner, independent of the background colour, and even with an otherwise high-quality code.

I’ve recorded this issue internally and tagged it as “tracked”.

Here are some more example images, in case anyone else fancies testing with them.

black-on-white

white-on-black

4 Likes

@pvuorela recently pushed an upgrade of the QR code reader library: [qr-filter] Migrate to Zxing 2.0 and enable inverted QR code. JB#58962 by pvuorela · Pull Request #6 · sailfishos/qr-filter-qml-plugin · GitHub

This should fix the problem of ‘inverted’ QR codes, as mentioned by @flypig.

There is no upgrade-4.5.0 branch in the repository though, so the fix may not be in coming 4.5 version.

1 Like

@flypig
upper code: This is a test QR code. This is a test QR code.
lower code: no result (blurred image on screen + eternally scanning)
Volla / GS290, 4.4.0.72, Code reader v 1.0.50-1.9.1 fresh installed from Chum.

Yep, should work now but didn’t indeed push to 4.5.0. Required a new version of the library and there wasn’t a regression.