-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 scan -> code 128B and code 128C scan raw value has an additional character #348
Comments
I tried one generated from that site and it works fine. Can you share a sample image that didn't work for you? |
Hi, the last character is part of the payload (group separator ascii 29), added by the generator. |
I thought the same thing, but I tried it with different generator and all generator did the same, but only with that code: KGMIK000072 For example with another code: And when I scan the barcode: Let's see another online generator: http://generator.onbarcode.com/online-code-128-barcode-generator.aspx But with my other code, there is no additional char with this generator either: Even KGMIK000073 works fine. |
@zhouyiself, group separator ascii 29 is not a part of the payload in this case. ascii 29 (FNC1) in this case is a checksum. I have the same issue. If a checksum equals 29 (FNC1) ml kit returns a char 29 in a raw value. For example. Barcode B12328, checksum equals 29 (FNC1) raw value B12326[char with ascii code 29] FNC1 can be returned in several cases (see GS1-128) but not when FNC1 is a checksum |
Don't know if this is gonna help but if you use getRawValue() you can use getDisplayValue instead |
Updates: we have fixed this issue internally and the fix will be in our future release that is scheduled to be available at late January 2022. |
includes fix for googlesamples/mlkit#348
includes fix for googlesamples/mlkit#348
Upgrading to 17.0.2 fixed this issue for me. |
When I read a code128 or code128A format barcode using mlkit barcode scanner in my app in Android Studio , everything is fine. But when I read a code128B or code128C format barcode, it reads the raw value with an additional character, this:
I used this site for barcode generation: http://www.barcodegenerator.online/
The text was updated successfully, but these errors were encountered: