Android icon indicating copy to clipboard operation
Android copied to clipboard

Scan from file doesn't always work

Open TheLastProject opened this issue 2 years ago • 8 comments

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

TheLastProject avatar Feb 07 '23 18:02 TheLastProject

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

jocoand avatar Apr 02 '23 09:04 jocoand

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

TheLastProject avatar May 26 '24 12:05 TheLastProject

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

TheLastProject avatar Jul 07 '24 09:07 TheLastProject