DecodeType

DecodeType enumeration

Specify the type of barcode to read.

public enum DecodeType

Values

NameValueDescription
NONE-1Unspecified decode type.
CODABAR0Specifies that the data should be decoded with {@code CODABAR} barcode specification
CODE_111Specifies that the data should be decoded with {@code CODE 11} barcode specification
CODE_392Specifies that the data should be decoded with {@code Code 39} basic charset barcode specification: ISO/IEC 16388
CODE_39_FULL_ASCII3Specifies that the data should be decoded with {@code Code 39} full ASCII charset barcode specification: ISO/IEC 16388
CODE_935Specifies that the data should be decoded with {@code CODE 93} barcode specification
CODE_1286Specifies that the data should be decoded with {@code CODE 128} barcode specification
GS_1_CODE_1287Specifies that the data should be decoded with {@code GS1 CODE 128} barcode specification
EAN_88Specifies that the data should be decoded with {@code EAN-8} barcode specification
EAN_139Specifies that the data should be decoded with {@code EAN-13} barcode specification
EAN_1410Specifies that the data should be decoded with {@code EAN14} barcode specification
SCC_1411Specifies that the data should be decoded with {@code SCC14} barcode specification
SSCC_1812Specifies that the data should be decoded with {@code SSCC18} barcode specification
UPCA13Specifies that the data should be decoded with {@code UPC-A} barcode specification
UPCE14Specifies that the data should be decoded with {@code UPC-E} barcode specification
ISBN15Specifies that the data should be decoded with {@code ISBN} barcode specification
STANDARD_2_OF_516Specifies that the data should be decoded with {@code Standard 2 of 5} barcode specification
INTERLEAVED_2_OF_517Specifies that the data should be decoded with {@code INTERLEAVED 2 of 5} barcode specification
MATRIX_2_OF_518Specifies that the data should be decoded with {@code Matrix 2 of 5} barcode specification
ITALIAN_POST_2519Specifies that the data should be decoded with {@code Italian Post 25} barcode specification
IATA_2_OF_520Specifies that the data should be decoded with {@code IATA 2 of 5} barcode specification. IATA (International Air Transport Association) uses this barcode for the management of air cargo.
ITF_1421Specifies that the data should be decoded with {@code ITF14} barcode specification
ITF_622Specifies that the data should be decoded with {@code ITF6} barcode specification
MSI23Specifies that the data should be decoded with {@code MSI Plessey} barcode specification
VIN24Specifies that the data should be decoded with {@code VIN} (Vehicle Identification Number) barcode specification
DEUTSCHE_POST_IDENTCODE25Specifies that the data should be decoded with {@code DeutschePost Ident code} barcode specification
DEUTSCHE_POST_LEITCODE26Specifies that the data should be decoded with {@code DeutschePost Leit code} barcode specification
OPC27Specifies that the data should be decoded with {@code OPC} barcode specification
PZN28Specifies that the data should be decoded with {@code PZN} barcode specification. This symbology is also known as Pharma Zentral Nummer
PHARMACODE29Specifies that the data should be decoded with {@code Pharmacode} barcode. This symbology is also known as Pharmaceutical BINARY Code
DATA_MATRIX30Specifies that the data should be decoded with {@code DataMatrix} barcode symbology
GS_1_DATA_MATRIX31Specifies that the data should be decoded with {@code GS1DataMatrix} barcode symbology
QR32Specifies that the data should be decoded with {@code QR Code} barcode specification
AZTEC33Specifies that the data should be decoded with {@code Aztec} barcode specification
GS_1_AZTEC81Specifies that the data should be decoded with {@code GS1 Aztec} barcode specification
PDF_41734Specifies that the data should be decoded with {@code Pdf417} barcode symbology
MACRO_PDF_41735Specifies that the data should be decoded with {@code MacroPdf417} barcode specification
MICRO_PDF_41736Specifies that the data should be decoded with {@code MicroPdf417} barcode specification
GS_1_MICRO_PDF_41782Specifies that the data should be decoded with MicroPdf417 barcode specification
CODABLOCK_F65Specifies that the data should be decoded with {@code CodablockF} barcode specification
MAILMARK66Specifies that the data should be decoded with Royal Mail Mailmark barcode specification.
AUSTRALIA_POST37Specifies that the data should be decoded with {@code Australia Post} barcode specification
POSTNET38Specifies that the data should be decoded with {@code Postnet} barcode specification
PLANET39Specifies that the data should be decoded with {@code Planet} barcode specification
ONE_CODE40Specifies that the data should be decoded with USPS {@code OneCode} barcode specification
RM_4_SCC41Specifies that the data should be decoded with {@code RM4SCC} barcode specification. RM4SCC (Royal Mail 4-state Customer Code) is used for automated mail sort process in UK.
DATABAR_OMNI_DIRECTIONAL42Specifies that the data should be decoded with {@code GS1 DATABAR omni-directional} barcode specification
DATABAR_TRUNCATED43Specifies that the data should be decoded with {@code GS1 DATABAR truncated} barcode specification
DATABAR_LIMITED44Specifies that the data should be decoded with {@code GS1 DATABAR limited} barcode specification
DATABAR_EXPANDED45Specifies that the data should be decoded with {@code GS1 DATABAR expanded} barcode specification
DATABAR_STACKED_OMNI_DIRECTIONAL53Specifies that the data should be decoded with {@code GS1 DATABAR stacked omni-directional} barcode specification
DATABAR_STACKED54Specifies that the data should be decoded with {@code GS1 DATABAR stacked} barcode specification
DATABAR_EXPANDED_STACKED55Specifies that the data should be decoded with {@code GS1 DATABAR expanded stacked} barcode specification
PATCH_CODE46Specifies that the data should be decoded with {@code Patch code} barcode specification. Barcode symbology is used for automated scanning
ISSN47Specifies that the data should be decoded with {@code ISSN} barcode specification
ISMN48Specifies that the data should be decoded with {@code ISMN} barcode specification
SUPPLEMENT49Specifies that the data should be decoded with {@code Supplement(EAN2, EAN5)} barcode specification
AUSTRALIAN_POSTE_PARCEL50Specifies that the data should be decoded with {@code Australian Post Domestic eParcel Barcode} barcode specification
SWISS_POST_PARCEL51Specifies that the data should be decoded with {@code Swiss Post Parcel Barcode} barcode specification
CODE_16_K52Specifies that the data should be decoded with {@code SCode16K} barcode specification
MICRO_QR56Specifies that the data should be decoded with {@code MicroQR Code} barcode specification
RECT_MICRO_QR83Specifies that the data should be decoded with RectMicroQR (rMQR) Code barcode specification
COMPACT_PDF_41757Specifies that the data should be decoded with {@code CompactPdf417} (Pdf417Truncated) barcode specification
GS_1_QR58Specifies that the data should be decoded with {@code GS1 QR} barcode specification
MAXI_CODE59Specifies that the data should be decoded with {@code MaxiCode} barcode specification
MICR_E_13_B60Specifies that the data should be decoded with {@code MICR E-13B} blank specification
CODE_3261Specifies that the data should be decoded with {@code Code32} blank specification
DATA_LOGIC_2_OF_562Specifies that the data should be decoded with {@code DataLogic 2 of 5} blank specification
DOT_CODE63Specifies that the data should be decoded with {@code DotCode} blank specification
GS_1_DOT_CODE77Specifies that the data should be decoded with {@code GS1 DotCode} blank specification
DUTCH_KIX64Specifies that the data should be decoded with {@code DotCode} blank specification
HIBC_CODE_39_LIC67Specifies that the data should be decoded with {@code HIBC LIC Code39} blank specification
HIBC_CODE_128_LIC68Specifies that the data should be decoded with {@code HIBC LIC Code128} blank specification
HIBC_AZTEC_LIC69Specifies that the data should be decoded with {@code HIBC LIC Aztec} blank specification
HIBC_DATA_MATRIX_LIC70Specifies that the data should be decoded with {@code HIBC LIC DataMatrix} blank specification
HIBCQRLIC71Specifies that the data should be decoded with {@code HIBC LIC QR} blank specification
HIBC_CODE_39_PAS72Specifies that the data should be decoded with {@code HIBC PAS Code39} blank specification
HIBC_CODE_128_PAS73Specifies that the data should be decoded with {@code HIBC PAS Code128} blank specification
HIBC_AZTEC_PAS74Specifies that the data should be decoded with {@code HIBC PAS Aztec} blank specification
HIBC_DATA_MATRIX_PAS75Specifies that the data should be decoded with {@code HIBC PAS DataMatrix} blank specification
HIBCQRPAS76Specifies that the data should be decoded with {@code HIBC PAS QR} blank specification
HAN_XIN78Specifies that the data should be decoded with Han Xin Code blank specification
GS_1_HAN_XIN79Specifies that the data should be decoded with Han Xin Code blank specification
GS_1_COMPOSITE_BAR80Specifies that the data should be decoded with {@code GS1 Composite Bar} barcode specification
TYPES_1D97Specifies that data will be checked with all of 1D barcode symbologies
POSTAL_TYPES95Specifies that data will be checked with all of 1.5D POSTAL barcode symbologies, like Planet, Postnet, AustraliaPost, OneCode, RM4SCC, DutchKIX
MOST_COMMON_TYPES96Specifies that data will be checked with most commonly used symbologies
TYPES_2D98Specifies that data will be checked with all of 2D barcode symbologies
ALL_SUPPORTED_TYPES99Specifies that data will be checked with all available symbologies

Examples

//This sample shows how to detect Code39 and Code128 barcodes.
let reader = new BarCodeReader("test.png", null,  [ DecodeType.CODE_39, DecodeType.CODE_128 ]);
let results = reader.readBarCodes();
for(let i = 0; i < results.length; i++)
{
let result = results[i];
console.log("BarCode Type: " + result.getCodeTypeName());
console.log("BarCode CodeText: " + result.getCodeText());
}

See Also