Jump to content

Interleaved 2 of 5: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
mNo edit summary
Line 52: Line 52:
* [http://www.racoindustries.com/barcodegenerator/1d/interleaved-2-of-5.aspx Online Interleaved 2 of 5 barcode generator].
* [http://www.racoindustries.com/barcodegenerator/1d/interleaved-2-of-5.aspx Online Interleaved 2 of 5 barcode generator].
* [http://www.dantem.cz/reseni/generator-carovych-kodu/ Online free barcode generator] (Interleaved 2 of 5 included)
* [http://www.dantem.cz/reseni/generator-carovych-kodu/ Online free barcode generator] (Interleaved 2 of 5 included)
* [http://www.onbarcode.com/scanner/interleaved25.html Free Interleaved 2 of 5 barcode reader]
[[Category:Barcodes]]
[[Category:Barcodes]]



Revision as of 04:53, 17 November 2011

Example Interleaved 2 of 5. Decoding of first two digits: Alternating bar/space nnnn(start code), bars WnnnW(1), spaces nWnnW(2)
I2/5 on a 135 film can; part of DX encoding

Interleaved 2 of 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.

I2/5 encodes pairs of digits; the first digit is encoded in the five bars (or black lines), while the second digit is encoded in the five spaces (or white lines) interleaved with them. Two out of every five bars or spaces are wide (hence 2 of 5). The digits are encoded as follows:

Digit Line width
0 n n W W n
1 W n n n W
2 n W n n W
3 W W n n n
4 n n W n W
5 W n W n n
6 n W W n n
7 n n n W W
8 W n n W n
9 n W n W n
1 2 4 7 0

Where "n" is a narrow line (bar or space) and "W" a wide line (2.0 to 3.0 times the width of a narrow line). The wide lines form a two-out-of-five code with consecutive values of 1, 2, 4, 7, and 0, where the code 0 has a value of 11. This is similar to the POSTNET bar code.

Before the actual pairs there is a start code consisting of nnnn (narrow bar-narrow space- narrow bar-narrow space), and after all symbols there is the stop code consisting of Wnn (Wide bar-narrow space-narrow bar).

Only an even number of digits can be encoded. Typically an odd number of digits is encoded by adding a "0" as first digit, but sometimes an odd number of digits is encoded by using five narrow spaces in the last digit.

A checksum can be added as last digit, which is calculated in the same way as UPC checksums.

There are very specific constraints on the height and width of the bars and the width of the "quiet areas", the blank areas before the start and after the stop symbol. See http://www.barcode-1.net/pub/russadam/i25code.html and http://www.spatula.net/proc/barcode/i25.src for more information.

On 135 film (35 mm) canisters it is used to identify the manufacturer, the film type, number of exposures and proprietary information in 6 digits. The barcode is located between the electrically read silver and black DX Camera Auto-Sensing Code and the film can exit lip. It is optically scanned by many film-processing machines when the cartridge is inserted for developing. (See Kodak patent 5761558.)

Identcode and Leitcode are variants of interleaved 2 of 5 with check digits used by Deutsche Post.

See also