Interleaved 2 of 5

Last updated
Example of Interleaved 2 of 5; note start code nnnn preceding the pair 12 (interleaved bars WnnnW and spaces nWnnW) and stop code Wnn following the pair 95 (bars nWnWn and spaces WnWnn). Barcode25i.svg
Example of Interleaved 2 of 5; note start code nnnn preceding the pair 12 (interleaved bars WnnnW and spaces nWnnW) and stop code Wnn following the pair 95 (bars nWnWn and spaces WnWnn).

Interleaved 2 of 5 (ITF) is a continuous two-width barcode symbology encoding digits. It is used commercially on 135 film, for ITF-14 barcodes, and on cartons of some products, while the products inside are labeled with UPC or EAN. ITF was created by David Allais, who also invented barcodes Code 39, Code 11, Code 93, and Code 49.

Contents

Encoding scheme

ITF 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, giving the name "2 of 5", and each pair has a consistent width. The wide lines form a two-out-of-five code with consecutive values of 1, 2, 4, 7, and 0, where the code 0 is assigned to the value of 11. This is similar to the POSTNET bar code.

Digits 01 23 45 67 89 encoded in ITF:
a = quiet zones
ST = start code nnnn
0 = nnWWn (bars)
1 = WnnnW (spaces)
2 = nWnnW (bars)
3 = WWnnn (spaces)
4 = nnWnW (bars)
5 = WnWnn (spaces)
6 = nWWnn (bars)
7 = nnnWW (spaces)
8 = WnnWn (bars)
9 = nWnWn (spaces)
SP = stop code Wnn ITF0123456789withdesc.svg
Digits 01 23 45 67 89 encoded in ITF:
  • a = quiet zones
  • ST = start code nnnn
  • 0 = nnWWn (bars)
  • 1 = WnnnW (spaces)
  • 2 = nWnnW (bars)
  • 3 = WWnnn (spaces)
  • 4 = nnWnW (bars)
  • 5 = WnWnn (spaces)
  • 6 = nWWnn (bars)
  • 7 = nnnWW (spaces)
  • 8 = WnnWn (bars)
  • 9 = nWnWn (spaces)
  • SP = stop code Wnn

The digits are encoded to symbols as follows:

Interleaved 2 of 5 encoding
DigitBar or space width Binary wordMnemonic (using weights)
0nnWWn001104+7=11, replaced by 0
1WnnnW100011+0=1
2nWnnW010012+0=2
3WWnnn110001+2=3
4nnWnW001014+0=4
5WnWnn101001+4=5
6nWWnn011002+4=6
7nnnWW000117+0=7
8WnnWn100101+7=8
9nWnWn010102+7=9
Weight:124709.5

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).

Decoding Interleaved 2 of 5. Every pair of digits is color-coded, showing the code and the value for each digit. Decoding Interleaved 2 of 5.jpg
Decoding Interleaved 2 of 5. Every pair of digits is color-coded, showing the code and the value for each digit.

Because digits are encoded by pairs, 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. [lower-alpha 1]

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

Start / stop and formatting

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).

There are specific constraints on the height and width of the bars and the width of the "quiet zones", the blank areas before the start and after the stop symbol; [1] [2] some of the standards that provide requirements for ITF (specifically ITF-14) include ISO/IEC 16390 [3] and GS1 General Specifications. [4] :§5.3.2

Applications

An ITF-14 bar code. The thick rectangular border is the Bearer Bar. ITF-14.svg
An ITF-14 bar code. The thick rectangular border is the Bearer Bar.

ITF is often used for marking product ID numbers or other codes, of various lengths, on item cartons and multi-unit cases. One specific instance of this, standardized by GS1, is the ITF-14 bar code used to mark packages with Global Trade Item Numbers. In these uses, the ITF bar code symbol is usually printed surrounded with a thick black rectangular border called the Bearer Bar. The Bearer Bar surrounds the entire symbol and the quiet zones, abutting the ends of the bars. The purpose of a Bearer Bar is to equalize the pressure exerted by the printing plate over the entire surface of the symbol, and to enhance reading reliability by helping to reduce the probability of misreads occurring when the bar code is scanned at too large an angle so that the scanning beam crosses the top and/or bottom edge of the bar code rather than scanning across all bars, entering through the leftmost bar and exiting through the rightmost bar (or vice versa for a reverse scan). Such a "short scan" which does not extend through all of the bars obviously cannot result in a correct read of the complete bar code, but by the nature of the interleaved 2 of 5 code, it is possible for a short scan that begins in the middle of the bar code to begin with a pattern that corresponds to the required start pattern, or for a short scan that ends in the middle of the bar code to end with a pattern that corresponds to the required stop pattern. In this way the short scan, though incorrect, may appear to be a correct full scan. The Bearer Bar prevents this error, as a short scan will pass through the Bearer Bar as it passes across the top or bottom edge of the bar code. Since the Bearer Bar is much wider than any legitimate black bar, it will ensure that the short scan cannot appear to begin with the correct start pattern and end with the correct end pattern, forcing an invalid scan. The bar code can then be re-scanned, either automatically or manually. [lower-alpha 2]

I2/5 on a 135 film can; part of DX encoding Interleaved 2 of 5 135 film barcode.png
I2/5 on a 135 film can; part of DX encoding

On 135 film (35 mm) canisters, interleaved 2 of 5 is used to identify the manufacturer, the film type, number of exposures and proprietary information using 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. [5]

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

See also

Notes

  1. Note however that the latter strategy causes the last special pair of symbols to be narrower than other pairs.
  2. If the short scan was not recognized as invalid, the misread data would be accepted and used as if it was good data, and there would be no chance to automatically rescan the bar code to correct the bad data.

Related Research Articles

<span class="mw-page-title-main">Universal Product Code</span> Barcode symbology used for tracking trade items in stores

The Universal Product Code is a barcode symbology that is used worldwide for tracking trade items in stores.

<span class="mw-page-title-main">Barcode</span> Optical machine-readable representation of data

A barcode or bar code is a method of representing data in a visual, machine-readable form. Initially, barcodes represented data by varying the widths, spacings and sizes of parallel lines. These barcodes, now commonly referred to as linear or one-dimensional (1D), can be scanned by special optical scanners, called barcode readers, of which there are several types.

<span class="mw-page-title-main">Code 39</span> Variable length, discrete barcode symbology

Code 39 is a variable length, discrete barcode symbology defined in ISO/IEC 16388:2007.

<span class="mw-page-title-main">PDF417</span> Type of barcode

PDF417 is a stacked linear barcode format used in a variety of applications such as transport, identification cards, and inventory management. "PDF" stands for Portable Data File. The "417" signifies that each pattern in the code consists of 4 bars and spaces in a pattern that is 17 units (modules) long. The PDF417 symbology was invented by Dr. Ynjiun P. Wang at Symbol Technologies in 1991. It is defined in ISO 15438.

<span class="mw-page-title-main">Code 128</span> Barcode format

Code 128 is a high-density linear barcode symbology defined in ISO/IEC 15417:2007. It is used for alphanumeric or numeric-only barcodes. It can encode all 128 characters of ASCII and, by use of an extension symbol (FNC4), the Latin-1 characters defined in ISO/IEC 8859-1. It generally results in more compact barcodes compared to other methods like Code 39, especially when the texts contain mostly digits. Code 128 was developed by the Computer Identics Corporation in 1981.

<span class="mw-page-title-main">Code 93</span>

Code 93 is a barcode symbology designed in 1982 by Intermec to provide a higher density and data security enhancement to Code 39. It is an alphanumeric, variable length symbology. Code 93 is used primarily by Canada Post to encode supplementary delivery information. Every symbol includes two check characters.

Telepen is a name of the barcode symbology designed to encode all 128 ASCII characters without using shift characters for code switching, and only using two different widths for both bars and spaces.. The symbology was devised by George Sims of SB Electronic Systems Ltd. Telepen was originally designed in the UK in 1972.

<span class="mw-page-title-main">International Article Number</span> Standard barcode system used in global trade

The International Article Number is a standard describing a barcode symbology and numbering system used in global trade to identify a specific retail product type, in a specific packaging configuration, from a specific manufacturer. The standard has been subsumed in the Global Trade Item Number standard from the GS1 organization; the same numbers can be referred to as GTINs and can be encoded in other barcode symbologies, defined by GS1. EAN barcodes are used worldwide for lookup at retail point of sale, but can also be used as numbers for other purposes such as wholesale ordering or accounting. These barcodes only represent the digits 0–9, unlike some other barcode symbologies which can represent additional characters.

Codabar is a linear barcode symbology developed in 1972 by Pitney Bowes Corp. It and its variants are also known as Codeabar, Ames Code, NW-7, Monarch, Code 2 of 7, Rationalized Codabar, ANSI/AIM BC3-1995 or USD-4. Although Codabar has not been registered for United States federal trademark status, its hyphenated variant, Code-a-bar, is a registered trademark.

<span class="mw-page-title-main">EAN-8</span> EAN/UPC symbology barcode

An EAN-8 is an EAN/UPC symbology barcode and is derived from the longer International Article Number (EAN-13) code. It was introduced for use on small packages where an EAN-13 barcode would be too large; for example on cigarettes, pencils, and chewing gum packets. It is encoded identically to the 12 digits of the UPC-A barcode, except that it has 4 digits in each of the left and right halves.

<span class="mw-page-title-main">Code 11</span> Barcode symbology

Code 11 is a barcode symbology developed by Intermec in 1977, and it is used primarily in telecommunications. The symbol can encode any length string consisting of the digits 0–9 and the dash character (-). A twelfth code represents the start/stop character, commonly printed as "*". One or two modulo-11 check digit(s) can be included.

<span class="mw-page-title-main">David Allais</span> American expert and inventor (born 1933)

David Allais is an American expert and inventor in the fields of bar coding and automatic identification and data capture. As vice president and later president and chief executive officer of Everett, Washington-based Intermec Inc. (NYSE:IN), he built the company from a small startup into the leading manufacturer of bar code and printing equipment. Prior to Allais' role at Intermec, he served as a manager for IBM. Most recently, Allais founded PathGuide Technologies, a Bothell, Washington-based developer of warehouse management systems for distributors.

<span class="mw-page-title-main">GS1 DataBar Coupon</span>

The GS1 Databar Coupon code has been in use in retail industry since the mid-1980s. At first, it was a UPC with system ID 5. Since UPCs cannot hold more than 12 digits, it required another barcode to hold additional information like offer code, expiration date and household ID numbers. Therefore, the code was often extended with an additional UCC/EAN 128 barcode. EAN 13 was sometimes used instead of UPC, and because it starts with 99, it was called the EAN 99 coupon barcode, and subsequently GS1 DataBar. After more than 20 years in use, there is now a need to encode more data for complex coupons, and to accommodate longer company IDs, so the traditional coupon code has become less efficient and sometimes not usable at all.

<span class="mw-page-title-main">ITF-6</span>

ITF-6 is the implementation of an Interleaved 2 of 5 (ITF) barcode to encode a addon to ITF-14 and ITF-16 barcodes. Originally was developed as a part of JIS specification for Physical Distribution Center. Instead of ITF-14, it wasn’t standardized by ISO Committee but it is widely used to encode additional data to Global Trade Item Number such as items quantity or container weight.

Barcode library or Barcode SDK is a software library that can be used to add barcode features to desktop, web, mobile or embedded applications. Barcode library presents sets of subroutines or objects which allow to create barcode images and put them on surfaces or recognize machine-encoded text / data from scanned or captured by camera images with embedded barcodes. The library can support two modes: generation and recognition mode, some libraries support barcode reading and writing in the same way, but some libraries support only one mode.

<span class="mw-page-title-main">Industrial 2 of 5</span>

Industrial 2 of 5. is a variable length, discrete, two width symbology. Industrial 2 of 5 is a subset of two-out-of-five codes.

<span class="mw-page-title-main">Matrix 2 of 5</span>

Matrix 2 of 5 is a variable length, discrete, two width symbology. Matrix 2 of 5 is a subset of two-out-of-five codes. Unlike Industrial 2 of 5 code, Matrix 2 of 5 can encode data not only with black bars but with white spaces.

<span class="mw-page-title-main">MicroPDF417</span>

MicroPDF417 is two-dimensional (2D) stacked barcode symbology invented in 1996, by Frederick Schuessler, Kevin Hunter, Sundeep Kumar and Cary Chu from Symbol Technologies company. MicroPDF417 consists from specially encoded Row Address Patterns (RAP) columns and aligned to them Data columns encoded in "417" sequence which was invented in 1990. In 2006, the standard was registered as ISO/IEC 24728:2006.

<span class="mw-page-title-main">DotCode</span> Type of matrix barcode

DotCode is two-dimensional (2D) matrix barcode invented in 2008 by Hand Held Products company to replace outdated Code 128. At this time, it is issued by Association for Automatic Identification and Mobility (AIM) as “ISS DotCode Symbology Specification 4.0”. DotCode consists of sparse black round dots and white spaces on white background. In case of black background round dots, creating barcode, can be white. DotCode was developed to use with high-speed industrial printers where printing accuracy can be low. Because DotCode by the standard does not require complicated elements like continuous lines or special shapes it can be applied with laser engraving or industrial drills.

<span class="mw-page-title-main">Rectangular Micro QR Code</span> Type of matrix barcode

Rectangular Micro QR Code is two-dimensional (2D) matrix barcode invented and standardized in 2022 by Denso Wave as ISO/IEC 23941. rMQR Code is designed as a rectangular variation of QR code and has the same parameters and applications as original QR code. But rMQR Code is more suitable for the rectangular areas and has difference between width and height up to 19 in R7x139 version. In this way it can be used in places where 1D barcodes are used. rMQR Code can replace Code 128 and Code 39 barcodes with more effective data encoding.

References

  1. Adams, Russ (20 June 2013). "All About Interleaved 2 of 5 Barcode". BarCode 1. Retrieved 5 January 2017.
  2. Johnson, Nick (18 August 2005). "Interleaved 2 of 5". Everything you Never Wanted to Know About Barcodes. Archived from the original on July 16, 2007. Retrieved August 21, 2007.
  3. "Information technology — Automatic identification and data capture techniques — Interleaved 2 of 5 bar code symbology specification". ISO/IEC. Retrieved 23 October 2024.
  4. "GS1 General Specifications". GS1. January 2024. Retrieved 23 October 2024.
  5. USPatent 5761558,Patton, David Lynn; Travis, Lawrence Joseph& McPherson, Douglas Andrew,"Expanded film cartidge bar code",published 2 June 1998, assigned to Eastman Kodak Company