DX Barcode
For 135 film cartridges the DX number is hashed to produce a four digit code. A suffix digit for the number of exposures and a manufacturer's proprietary prefix digit are concatenated to form a 6 digit decimal code. The code is printed in human-readable text and also represented as an Interleaved 2 of 5 barcode. Size and position conform to the ANSI/NAPM IT1.14:1994 standard.
To generate digits 2 through 5, the combination code is multiplied by 16 and added to the specifier number. The result is prefixed with zeroes to make 4 digits. For the Agfa film 115-4 above, the digits would be 1844 (16 × 115 + 4).
Digit 1 is any digit from 0 to 9 and is assigned by the manufacturer.
Digit 6 is a code digit for the number of full-frame exposures: 1 is for 12 exposures, 2 for 20 exposures, 3 for 24, 4 for 36, 5 for 48, 6 for 60, 0 for 72 and 7 for non-standard lengths such as 24+3.
The barcode is located between the electrically-read silver and black DX Camera Auto-Sensing Code and the film cartridge exit lip.
The barcode is optically scanned by many film-processing machines when the cartridge is inserted for developing. (Kodak patent 5761558)
Read more about this topic: DX Number