TDecodeHintType Enumeration

Unit: ZXing.DecodeHintType
type TDecodeHintType = OTHER..ENABLE_INVERSION

The TDecodeHintType type exposes the following members.

Show:
 NameDescription
OTHER

Unspecified, application-specific hint. Maps to an unspecified .

PURE_BARCODE

Image is a pure monochrome image of a barcode. Doesn't matter what it maps to; use = true.

POSSIBLE_FORMATS

Image is known to be of one of a few possible formats. Maps to a of s.

TRY_HARDER

Spend more time to try to find a barcode; optimize for accuracy, not speed. Doesn't matter what it maps to; use = true.

CHARACTER_SET

Specifies what character encoding to use when decoding, where applicable (type String)

ALLOWED_LENGTHS

Allowed lengths of encoded data -- reject anything else. Maps to an int[].

ASSUME_CODE_39_CHECK_DIGIT

Assume Code 39 codes employ a check digit. Maps to .

NEED_RESULT_POINT_CALLBACK

The caller needs to be notified via callback when a possible is found. Maps to a .

ASSUME_MSI_CHECK_DIGIT

Assume MSI codes employ a check digit. Maps to .

USE_CODE_39_EXTENDED_MODE

if Code39 could be detected try to use extended mode for full ASCII character set Maps to .

RELAXED_CODE_39_EXTENDED_MODE

Don't fail if a Code39 is detected but can't be decoded in extended mode. Return the raw Code39 result instead. Maps to .

TRY_HARDER_WITHOUT_ROTATION

1D readers supporting rotation with TRY_HARDER enabled. But BarcodeReader class can do auto-rotating for 1D and 2D codes. Enabling that option prevents 1D readers doing double rotation. BarcodeReader enables that option automatically if "global" auto-rotation is enabled. Maps to .

ASSUME_GS1

Assume the barcode is being processed as a GS1 barcode, and modify behavior as needed. For example this affects FNC1 handling for Code 128 (aka GS1-128). Doesn't matter what it maps to; use .

RETURN_CODABAR_START_END

If true, return the start and end digits in a Codabar barcode instead of stripping them. They are alpha, whereas the rest are numeric. By default, they are stripped, but this causes them to not be. Doesn't matter what it maps to; use .

ALLOWED_EAN_EXTENSIONS

Allowed extension lengths for EAN or UPC barcodes. Other formats will ignore this. Maps to an of the allowed extension lengths, for example [2], [5], or [2, 5]. If it is optional to have an extension, do not set this hint. If this is set, and a UPC or EAN barcode is found but an extension is not, then no result will be returned at all.

ENABLE_INVERSION

Allowes for inversion of an image. Add the to invert the image

Top