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

Small QR Codes do not work #517

Open
maerni opened this issue May 22, 2023 · 4 comments
Open

Small QR Codes do not work #517

maerni opened this issue May 22, 2023 · 4 comments
Labels

Comments

@maerni
Copy link

maerni commented May 22, 2023

We wanted to use the ngx-scanner and installed the following versions (we use Angular 13):

@zxing/browser 0.1.1
@zxing/library 0.19.2
@zxing/ngx-scanner 3.5.0

Now we have the problem, that it does not work with small QR Codes (i.e. 3x3mm).

With normal or big QR Codes it works.

What could be the problem? How can we fix this?

Thanks.

@maerni maerni added the bug label May 22, 2023
@daniyal76
Copy link

i have same problem.if we could set zoom for camera it would be better.

@maerni
Copy link
Author

maerni commented Jul 6, 2023

yes, this would be very good, if the autofocus/zoom wourd work fine. without it is not usable for me ;-(

@hardik-hns
Copy link

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.

@hardik-hns
Copy link

hardik-hns commented Jul 9, 2024

Hi @maerni , The below link would be useful for you as it worked for me - #535 (comment)

I added the below code in my component and it works -

ZXingScannerComponent.prototype.getAnyVideoDevice = (): Promise<MediaStream> => { return navigator.mediaDevices.getUserMedia({ audio: false, video: { width: { min: 640, ideal: 1920 }, height: { min: 400, ideal: 1080 }, aspectRatio: { ideal: 1.7777777778 } } }); };

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

No branches or pull requests

3 participants