ngx-scanner icon indicating copy to clipboard operation
ngx-scanner copied to clipboard

Scanning complex QR codes take more than 10 seconds

Open ydamato opened this issue 3 years ago • 2 comments

Bug, feature request, or proposal:

I am working on a mobile app which scan QR Codes. I am currently facing an issue when trying to scan complex QR codes, I have to keep scanning without moving for 10 to 20 seconds to get the scan working.

I can't provide you a full example due to data protection but here is a part of one of the QR codes I'd need to scan. image

Is there any way to improve the scanning time? I kept the autofocusEnabled as true (default value) and set tryHarder to true.

What is the expected behavior?

Library should recognise the QR code in less than 10 seconds

What is the current behavior?

QR code is recognise after 10 to 20 seconds

Which versions of Angular, ngx-scanner, OS, TypeScript, browsers are affected?

Angular: 11.0 zxing/ngx-scanner: 3.1.3 OS: Android/IOS Browsers: all

ydamato avatar Jun 29 '21 15:06 ydamato

FYI - As far as I can tell from the code, autofocusEnabled doesn't do anything. It just sets the component property to true, but nothing else happens. It's also described in the Wiki as "not working at the moment".

carlos-ds avatar Jul 12 '21 11:07 carlos-ds

Also face the same issue. For camera with lower resolution, the QR scanning doesn't work at all for complex QR codes. is there a way we can make sure the images are enhanced while decoding?

aishahrazak avatar Sep 10 '21 00:09 aishahrazak