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

ITF wide bar width, bar wide to narrow ratio #34

Closed
srowen opened this issue Jan 18, 2014 · 1 comment
Closed

ITF wide bar width, bar wide to narrow ratio #34

srowen opened this issue Jan 18, 2014 · 1 comment

Comments

@srowen
Copy link
Contributor

srowen commented Jan 18, 2014

Hi,

in source file

core/src/main/java/com/google/zxing/oned/ITFReader.java on line 50 we have:

private static final int W = 3; // Pixel width of a wide line

in comment you write "Wikipedia is a great reference for Interleaved 2 of 5 information"
and on Wikipedia site we have: wide line (2.0 to 3.0 times the width of a narrow line).

I implement "Wide To Narrow Ratio" in my barcode generator

http://www.generatorkodowkreskowych.pl/en/itf-14/
http://www.generatorkodowkreskowych.pl/en/2of5-interleaved/

You can generate ITF codes with diffrent wide line width (2 to 3 times the width of a narrow line)

For PNG images you can use:

at scale 100% (narrow bar = 1) and WTNR in [2, 3] wide bar = 2,3
at scale 200% (narrow bar = 2) and WTNR in [2, 2.5, 3] wide bar = 4,5,6
at scale 300% (narrow bar = 3) and WTNR in [2, 2.33, 2.66, 3] wide bar = 6,7,8,9
at scale 400% (narrow bar = 4) and WTNR in [2, 2.25, 2,5, 2.75, 3.0 ] wide bar = 8,9,10,11,12

For PDF files you can use:

scale in range 80% to 200%, Wide To Narrow Ratio in range 2.00 to 3.00 with 0.01 step.

I make tests:

generate codes with Wide/Narrow = 2, and with Wide/Narrow = 2.5, and Wide/Narrow = 3
print codes and read with manual barcode reader Argox AS-8000.

Your barcode reader can not read ITF barcode with Wide To Narrow Ratio = 2,
but can read Code-39 with Wide To Narrow Ratio = [2,3].

I assume this information can help you to improve ITFReader.

Ported from https://code.google.com/p/zxing/issues/detail?id=1831

@srowen
Copy link
Contributor Author

srowen commented Feb 12, 2014

Closing; no follow-up to questions from reporter.

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

Successfully merging a pull request may close this issue.

1 participant