-
-
Notifications
You must be signed in to change notification settings - Fork 549
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
Not reading 2d CODE_128 barcodes from camera #394
Comments
I have same issue |
Plase provide an example of your code or a demo so I can reproduce your issue. |
Here is my code:
I need to acquire both DATA_MATRIX and CODE_128 barcodes. I have also tried to narrow it down to only these two types of barcodes (see commented lines with Hints), but nothing changes. DATA_MATRIX are encoded correclty, CODE_128 are not acquired (nothing is returned). Thanks, |
Understood, are you encoding your own codes? Could you provide some examples? |
The format of this barcode is "CODE_128" (type: "TEXT"). And it is correclty decoded by the ZXing Android app "Barcode scanner". |
I have a similar problem. a valid code_128 barcode which is decoded by the app fast can't be decoded in zxing-js port. |
I have same issue |
Same issue here |
An update on this problem would be appreciated, a bounty can be offered. |
I believe I know what the problem is (if you're using a mobile phone to scan). Phones almost always have multiple cameras these days. And the code is just picking the first camera device (which for me was a camera with manual focus only and no torch):
Instead, you should be selecting the most approprate camera for barcode scanning (which includes auto focus and torch). I forked a Vue library and added new features to select the correct camera for barcode scanning, and allow the user to turn on the torch (flash) as well as control the zoom, manual focus, and landscape mode. All of these features are designed to result in a much higher scanning ability. For example, with my library, I can easily scan the barcode shown above. Here's a link to a demo of my Vue library (which uses zxing-js library for scanning). Visit the link from your phone (Android/Chrome supports all features, iOS/Safari will have a reduct functionally as they don't allow the user to get info on camera devices nor control the camera. |
Hi.
I am trying to develop a web application that reads barcodes by using camera.
With two-dimensional codes of type DATA_MATRIX I have no problem.
But when my script tries to scan one-dimensional barcodes of type UCC-128 / CODE_128 [such as: (91)91792429(37)5760] it fails to decode it.
I am using the following code reader:
codeReader = new ZXing.BrowserMultiFormatReader();
Why does this happen?
Thank you!
Best regards,
Lorenzo
The text was updated successfully, but these errors were encountered: