-
-
Notifications
You must be signed in to change notification settings - Fork 666
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
Problem Code 128 barcode #251
Comments
There is no guarantee that every barcode can be decoded. And there is no guarantee that the .Net version of zxing gives the same result as the original java version. For example since the beginning of the project I tried to implement a color-to-grayscale-algorithm which works like the java one. But I couldn't remove the last small differences yet. But an identical grayscale image is important for the binarizer to give the same result. If you shrink the image by 50% the barcode can be decoded successfully. |
Thanks! I thought something like this would be the issue.
… Op 1 apr. 2020 om 20:55 heeft Michael Jahn ***@***.***> het volgende geschreven:
There is no guarantee that every barcode can be decoded. And there is no guarantee that the .Net version of zxing gives the same result as the original java version. For example since the beginning of the project I tried to implement a color-to-grayscale-algorithm which works like the java one. But I couldn't remove the last small differences yet. But an identical grayscale image is important for the binarizer to give the same result.
If you shrink the image by 50% the barcode can be decoded successfully.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi Michael & Edward |
Without any details (like a code snippet of the barcode reader initialization, the selected resolution or a sample image) I can't help here. |
We have a main problem here: you are using a different library: https://github.com/Spelt/ZXing.Delphi/ |
Oh. I see. I apologize. I saw this and thought you were a Delphi guy. I noticed that Edward had mentioned that he had the same issue in .Net but didn't realize that that was specifically why he had reached out to you. Many Thanks for your correspondence. It's been most appreciated.......... and I also learned something with respect to initializing with the hints. Was just trying to ensure anyone had all the info they needed. I'll leave it with Edward who I believe is the Delphi guru :-) . |
HI,
Thanks for the great work!
I have a problem with a Code 128 barcode.
If I upload the same file for decode at https://zxing.org/ it decodes fine. Not sure if there is a bug with code 128. I have attached the image with barcode here.
Hope you can help!
Kind Regards,
Edward
The text was updated successfully, but these errors were encountered: