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

Barcode 39 is scanned unreliably on Android #905

Open
alexcgrd opened this issue Mar 21, 2024 · 1 comment
Open

Barcode 39 is scanned unreliably on Android #905

alexcgrd opened this issue Mar 21, 2024 · 1 comment

Comments

@alexcgrd
Copy link

Like the title says, I have a hard time scanning codes with the type "barcode 39". I usually get a right code about 50% of the time, which is not great. Usually either the code was cut or it read some characters wrong.

I have tested this mainly on my Xiaomi Android Phone (POCO X3 Pro). I have tried it with many different configuration-variations. I noticed that going with a lower fps amount will give the camera more time to focus on the code which results in slightly better results. My current configurations look like this:

// configurations: { fps: 5, qrbox: self.config.readerBox, useBarCodeDetectorIfSupported: true, rememberLastUsedCamera: true, aspectRatio: 4/3, formatsToSupport: [ Html5QrcodeSupportedFormats.QR_CODE, Html5QrcodeSupportedFormats.CODE_39, Html5QrcodeSupportedFormats.CODE_128, Html5QrcodeSupportedFormats.EAN_13, Html5QrcodeSupportedFormats.EAN_8, ], },

The readerbox function returns {width: 294, height: 294} on this specific device.

Here is an example of a barcode 39 that I had a lot of trouble with. Is has a length of 11 characters which is not too long. Often times it would cut to "77070300".

barcode

@alexcgrd
Copy link
Author

Are there any updates? Does anyone have an idea?

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

No branches or pull requests

1 participant