Interleaved 2 of 5, also known as ANSI/AIM ITF 25, ANSI/AIM I-2/5, is a continuous two-width barcode symbology encoding digits. It is used commercially on 135 film and on cartons of some products, while the products inside are labeled with UPC or EAN.
The basic characteristics of Interleaved 2 of 5 are:
The Interleaved 2 of 5 specification does not specify the maximum number of characters in a single barcode image.
However the encoding character set must be the even number of digits.
Interleaved 2 of 5 includes one start pattern, and one stop pattern.
The start pattern shall consist of four narrow elements in the sequence "bar - space - bar - space". The stop
pattern shall consist of a "wide bar - narrow space - narrow bar" sequence.
The start pattern shall be positioned at the normal left end of the data symbol characters adjacent to the first
bar of the most significant digit. The stop pattern shall be positioned at the normal right end of the data symbol
characters adjacent to the final space of the least significant digit.
There is no assigned human readable interpretation of the start and stop patterns and the start/stop will not be displayed in the Interleaved 2 of 5 barcode text.
Interleaved 2 of 5 symbols shall comprise:
For applications requiring enhanced data security, Interleaved 2 of 5 may include one checksum digit as a symbol check character.
When a check digit included, the following check character algorithm shall be used:
Example to calculate the check digit for the data 1937:
1 | 9 | 3 | 7 | |||
Step 1: | 9 | + | 7 | = | 16 | |
Step 2: | x | 3 | = | 48 | ||
Step 3: | 1 | + | 3 | = | 4 | |
Step 4: | 4 | + | 48 | = | 52 | |
Step 5: | (next multiple of 10 is 60): | 60 | - | 52 | = | 8 |
therefore the check digit is 8 |