CatimaLoyalty / Android

Catima, a Loyalty Card & Ticket Manager for Android
https://catima.app
GNU General Public License v3.0
807 stars 146 forks source link

Scan from file doesn't always work #1215

Open TheLastProject opened 1 year ago

TheLastProject commented 1 year ago

image

This image scans fine if you use the camera, but if you use "Select image from gallery" in the "Scan Barcode" screen it returns "No barcode was found".

The code in question currently scanning is as follows: https://github.com/CatimaLoyalty/Android/blob/f05a5dde1e6c38f0503b86e01e5156deec951629/app/src/main/java/protect/card_locker/Utils.java#L200-L216

jocoand commented 1 year ago

Still don't have solution for this.

Hope this help I try to upload the image to http://qrlogo.kaarposoft.dk/qrdecode.html

It shows Image data is not rectangular error then.

ss
TheLastProject commented 3 months ago

( Pinging @BrilliantTrees here, may be able to ping them to test with their theatre tickets from May 2024 if any progress is made here :) )

Korb commented 2 months ago

PNG (Google Drive):

Catima: "No barcode was found".

Screenshot_2024_0705_081155_com chrome beta (products.aspose.app/barcode/recognize – EAN-13)

Another (EAN-8): Screenshot_2024_0705_082943_com chrome beta

And this: Project 1 (cmbdn.cognex.com/free-barcode-scanner –EAN-13)

TheLastProject commented 2 months ago

Important sidenote: apparently cropping is a workaround for this issue: #1970