8000 Why is barcode format 'itf' meant to be ITF14? · Issue #102 · WICG/shape-detection-api · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Why is barcode format 'itf' meant to be ITF14? #102

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

Open
mperkh opened this issue Aug 10, 2024 · 2 comments
Open

Why is barcode format 'itf' meant to be ITF14? #102

mperkh opened this issue Aug 10, 2024 · 2 comments

Comments

@mperkh
Copy link
mperkh commented Aug 10, 2024

We try to switch from a JS based solution to using the Barcode Detection API available on Android Chrome.

Unfortunately, it turns out that the barcode format option itf is meant to be ITF14, which is a special form of Interleaved 2 of 5 barcode symbology and must always be 14 digits long, among other restrictions.

As the name suggests, itf should include all variants of Interleaved 2 of 5.

https://wicg.github.io/shape-detection-api/#dom-barcodeformat-itf
https://en.wikipedia.org/wiki/Interleaved_2_of_5
https://www.zint.org.uk/manual/chapter/6/1/2#interleaved-code-2-of-5-iso-16390

@reillyeon
Copy link
Collaborator

Can you provide an example of an ITF barcode which Android Chrome cannot decode?

@mperkh
Copy link
Author
mperkh commented Aug 13, 2024

Can you provide an example of an ITF barcode which Android Chrome cannot decode?

itf

(Generated using https://barcode.tec-it.com/en/Code25IL?data=00123456789012345675)

Getting arbitrary results scanning, using
Google Pixel 6, Android 14, Chrome 127.
Tested using https://georapbox.github.io/barcode-scanner

Expected scan result is 00123456789012345675.

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

2 participants
0