Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngx-scanner can't read small barcodes?! #391

Open
bibout182 opened this issue Apr 6, 2021 · 6 comments
Open

ngx-scanner can't read small barcodes?! #391

bibout182 opened this issue Apr 6, 2021 · 6 comments

Comments

@bibout182
Copy link

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

@bibout182 bibout182 changed the title Why is the library can't read small barcodes? ngx-scanner can't read small barcodes?! Apr 6, 2021
@basalt79
Copy link

basalt79 commented Sep 7, 2022

same here. any news?

@winfa
Copy link

winfa commented May 22, 2023

Hi @bibout182, did you got the problem solved?

@emrahcagliyan05
Copy link

I have the same problem. Is the problem solved?

@ivanmonteiro
Copy link

Same problem here. I'm on angular 13 and

    "@zxing/browser": "0.1.1",
    "@zxing/library": "0.19.1",
    "@zxing/ngx-scanner": "3.5.0",

@hardik-hns
Copy link

hardik-hns commented Jul 9, 2024

Do you happen to have any update on this?? I'm using the latest version 18.0.0 of @zxing/ngx-scanner but still facing this issue.

@werthdavid
Copy link
Member

Sorry, no idea atm how we could resolve that..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants