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

Ean not parsed properly #1

Open
Sophon opened this issue Aug 9, 2021 · 0 comments
Open

Ean not parsed properly #1

Sophon opened this issue Aug 9, 2021 · 0 comments

Comments

@Sophon
Copy link

Sophon commented Aug 9, 2021

The library doesn't always extract the data correctly.

So far I have two examples:

020859001461872537006515220723 - https://i.imgur.com/uCTLOWa.jpg

BarcodeResultParser().parseBarcode(ean).fields[2].getFormattedData() returns 651522 instead of 65. That then messes up fields[3].

02085940010206219008594001020225370084 - https://i.imgur.com/8GHkpoC.jpg

BarcodeResultParser().parseBarcode(ean).fields[2].getFormattedData() returns 594001020225370084 instead of 594001020225. getCode() returns 9008 instead of 90. That is definitely wrong since there's no 9008 application identifier per Gs1 standards: https://www.gs1.org/standards/barcodes/application-identifiers?lang=en

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

No branches or pull requests

1 participant