ngx-scanner
ngx-scanner copied to clipboard
ngx-scanner can't read small barcodes?!
Bug, feature request, or proposal:
I'm developing an Angular App (Angular 11.2.0) and I'm trying to read a (small) code 128 on an employee badge. I'm using an old webcam to test. It works well with normal size Barcodes or QR Codes but it doesn't work with the tiny Barcode on the employee badge. I was thinking that the issue was the resolution of the web cam. I tried the same thing on my iPhone but it doesn't work either :/
I was checking for other libraries and I discovered this link https://demo.dynamsoft.com/barcode-reader-js/ . I'm able to scan the code on the badge with this library. I'm looking for something basic, I already used ngx-scanner so I would like to keep using this one (also the other one needs a license key and it's $1249..)
What is the expected behavior?
I would like to be able to scan a barcode even if it's small with my iPhone which have a good camera.
I tried to had that to the code but I didn't notice any improvement :
constraints: any = { width: { min: 640, ideal: 1920, max: 1920 }, height: { min: 400, ideal: 1080 }, aspectRatio: 1.777777778, frameRate: { max: 60 } };
and this is how I declared the scanner in my html file :
<zxing-scanner [formats]="allowedFormats" [enable]="scannerEnabled" (scanSuccess)="scanSuccessHandler($event)" [videoConstraints]="constraints" [autofocusEnabled]="autofocus"></zxing-scanner>
Is there something I'm missing? I feel like the scanner is not using the capacity of the iPhone camera, am I wrong?
What is the current behavior?
The scanner doesn't seem to scan small barcodes.
Thanks for your help
same here. any news?
Hi @bibout182, did you got the problem solved?
I have the same problem. Is the problem solved?