public final class ITFReader extends OneDReader
Implements decoding of the ITF format, or Interleaved Two of Five.
This Reader will scan ITF barcodes of certain lengths only. At the moment it reads length 6, 8, 10, 12, 14, 16, 18, 20, 24, and 44 as these have appeared "in the wild". Not all lengths are scanned, especially shorter ones, to avoid false positives. This in turn is due to a lack of required checksum function.
The checksum is optional and is not applied by this Reader. The consumer of the decoded value will have to apply a checksum if required.
http://en.wikipedia.org/wiki/Interleaved_2_of_5 is a great reference for Interleaved 2 of 5 information.
Constructor and Description |
---|
ITFReader() |
Modifier and Type | Method and Description |
---|---|
Result |
decodeRow(int rowNumber,
BitArray row,
Map<DecodeHintType,?> hints)
Attempts to decode a one-dimensional barcode format given a single row of
an image.
|
decode, decode, patternMatchVariance, recordPattern, recordPatternInReverse, reset
public Result decodeRow(int rowNumber, BitArray row, Map<DecodeHintType,?> hints) throws FormatException, NotFoundException
OneDReader
Attempts to decode a one-dimensional barcode format given a single row of an image.
decodeRow
in class OneDReader
rowNumber
- row number from top of the rowrow
- the black/white pixel data of the rowhints
- decode hintsResult
containing encoded string and start/end of barcodeFormatException
- if a potential barcode is found but format is invalidNotFoundException
- if no potential barcode is foundCopyright © 2007–2024. All rights reserved.