Aspose.Barcode for Python via Java Generation and Recognition API docs

Specify the type of barcode to read. More...

Inherits Enum.

Static Public Member Functions

def is1D (symbology)
 Determines if the specified BaseDecodeType contains any 1D barcode symbology. More...
 
def isPostal (symbology)
 Determines if the specified BaseDecodeType contains any Postal barcode symbology. More...
 
def is2D (symbology)
 Determines if the specified BaseDecodeType contains any 2D barcode symbology. More...
 
def containsAny (decodeType, decodeTypes)
 

Static Public Attributes

int NONE = -1
 Unspecified decode type. More...
 
int CODABAR = 0
 Specifies that the data should be decoded with. More...
 
int CODE_11 = 1
 Specifies that the data should be decoded with. More...
 
int CODE_39_STANDARD = 2
 Specifies that the data should be decoded with. More...
 
int CODE_39_EXTENDED = 3
 Specifies that the data should be decoded with. More...
 
int CODE_93_STANDARD = 4
 Specifies that the data should be decoded with. More...
 
int CODE_93_EXTENDED = 5
 Specifies that the data should be decoded with. More...
 
int CODE_128 = 6
 Specifies that the data should be decoded with. More...
 
int GS_1_CODE_128 = 7
 Specifies that the data should be decoded with. More...
 
int EAN_8 = 8
 Specifies that the data should be decoded with. More...
 
int EAN_13 = 9
 Specifies that the data should be decoded with. More...
 
int EAN_14 = 10
 Specifies that the data should be decoded with. More...
 
int SCC_14 = 11
 Specifies that the data should be decoded with. More...
 
int SSCC_18 = 12
 Specifies that the data should be decoded with. More...
 
int UPCA = 13
 Specifies that the data should be decoded with. More...
 
int UPCE = 14
 Specifies that the data should be decoded with. More...
 
int ISBN = 15
 Specifies that the data should be decoded with. More...
 
int STANDARD_2_OF_5 = 16
 Specifies that the data should be decoded with. More...
 
int INTERLEAVED_2_OF_5 = 17
 Specifies that the data should be decoded with. More...
 
int MATRIX_2_OF_5 = 18
 Specifies that the data should be decoded with. More...
 
int ITALIAN_POST_25 = 19
 Specifies that the data should be decoded with. More...
 
int IATA_2_OF_5 = 20
 Specifies that the data should be decoded with. More...
 
int ITF_14 = 21
 Specifies that the data should be decoded with. More...
 
int ITF_6 = 22
 Specifies that the data should be decoded with. More...
 
int MSI = 23
 Specifies that the data should be decoded with. More...
 
int VIN = 24
 Specifies that the data should be decoded with. More...
 
int DEUTSCHE_POST_IDENTCODE = 25
 Specifies that the data should be decoded with. More...
 
int DEUTSCHE_POST_LEITCODE = 26
 Specifies that the data should be decoded with. More...
 
int OPC = 27
 Specifies that the data should be decoded with. More...
 
int PZN = 28
 Specifies that the data should be decoded with. More...
 
int PHARMACODE = 29
 Specifies that the data should be decoded with. More...
 
int DATA_MATRIX = 30
 Specifies that the data should be decoded with. More...
 
int GS_1_DATA_MATRIX = 31
 Specifies that the data should be decoded with. More...
 
int QR = 32
 Specifies that the data should be decoded with. More...
 
int AZTEC = 33
 Specifies that the data should be decoded with. More...
 
int GS_1_AZTEC = 81
 Specifies that the data should be decoded with. More...
 
int PDF_417 = 34
 Specifies that the data should be decoded with. More...
 
int MACRO_PDF_417 = 35
 Specifies that the data should be decoded with. More...
 
int MICRO_PDF_417 = 36
 Specifies that the data should be decoded with. More...
 
int GS_1_MICRO_PDF_417 = 82
 Specifies that the data should be decoded with MicroPdf417 barcode specification. More...
 
int CODABLOCK_F = 65
 Specifies that the data should be decoded with. More...
 
int MAILMARK = 66
 Specifies that the data should be decoded with Royal Mail Mailmark barcode specification. More...
 
int AUSTRALIA_POST = 37
 Specifies that the data should be decoded with. More...
 
int POSTNET = 38
 Specifies that the data should be decoded with. More...
 
int PLANET = 39
 Specifies that the data should be decoded with. More...
 
int ONE_CODE = 40
 Specifies that the data should be decoded with USPS. More...
 
int RM_4_SCC = 41
 Specifies that the data should be decoded with. More...
 
int DATABAR_OMNI_DIRECTIONAL = 42
 Specifies that the data should be decoded with. More...
 
int DATABAR_TRUNCATED = 43
 Specifies that the data should be decoded with. More...
 
int DATABAR_LIMITED = 44
 Specifies that the data should be decoded with. More...
 
int DATABAR_EXPANDED = 45
 Specifies that the data should be decoded with. More...
 
int DATABAR_STACKED_OMNI_DIRECTIONAL = 53
 Specifies that the data should be decoded with. More...
 
int DATABAR_STACKED = 54
 Specifies that the data should be decoded with. More...
 
int DATABAR_EXPANDED_STACKED = 55
 Specifies that the data should be decoded with. More...
 
int PATCH_CODE = 46
 Specifies that the data should be decoded with. More...
 
int ISSN = 47
 Specifies that the data should be decoded with. More...
 
int ISMN = 48
 Specifies that the data should be decoded with. More...
 
int SUPPLEMENT = 49
 Specifies that the data should be decoded with. More...
 
int AUSTRALIAN_POSTE_PARCEL = 50
 Specifies that the data should be decoded with. More...
 
int SWISS_POST_PARCEL = 51
 Specifies that the data should be decoded with. More...
 
int CODE_16_K = 52
 Specifies that the data should be decoded with. More...
 
int MICRO_QR = 56
 Specifies that the data should be decoded with. More...
 
int RECT_MICRO_QR = 83
 Specifies that the data should be decoded with RectMicroQR (rMQR) Code barcode specification. More...
 
int COMPACT_PDF_417 = 57
 Specifies that the data should be decoded with. More...
 
int GS_1_QR = 58
 Specifies that the data should be decoded with. More...
 
int MAXI_CODE = 59
 Specifies that the data should be decoded with. More...
 
int MICR_E_13_B = 60
 Specifies that the data should be decoded with. More...
 
int CODE_32 = 61
 Specifies that the data should be decoded with. More...
 
int DATA_LOGIC_2_OF_5 = 62
 Specifies that the data should be decoded with. More...
 
int DOT_CODE = 63
 Specifies that the data should be decoded with. More...
 
int GS_1_DOT_CODE = 77
 Specifies that the data should be decoded with. More...
 
int DUTCH_KIX = 64
 Specifies that the data should be decoded with. More...
 
int HIBC_CODE_39_LIC = 67
 Specifies that the data should be decoded with. More...
 
int HIBC_CODE_128_LIC = 68
 Specifies that the data should be decoded with. More...
 
int HIBC_AZTEC_LIC = 69
 Specifies that the data should be decoded with. More...
 
int HIBC_DATA_MATRIX_LIC = 70
 Specifies that the data should be decoded with. More...
 
int HIBCQRLIC = 71
 Specifies that the data should be decoded with. More...
 
int HIBC_CODE_39_PAS = 72
 Specifies that the data should be decoded with. More...
 
int HIBC_CODE_128_PAS = 73
 Specifies that the data should be decoded with. More...
 
int HIBC_AZTEC_PAS = 74
 Specifies that the data should be decoded with. More...
 
int HIBC_DATA_MATRIX_PAS = 75
 Specifies that the data should be decoded with. More...
 
int HIBCQRPAS = 76
 Specifies that the data should be decoded with. More...
 
int HAN_XIN = 78
 Specifies that the data should be decoded with Han Xin Code blank specification. More...
 
int GS_1_HAN_XIN = 79
 Specifies that the data should be decoded with Han Xin Code blank specification. More...
 
int GS_1_COMPOSITE_BAR = 80
 Specifies that the data should be decoded with. More...
 
int TYPES_1D = 97
 Specifies that data will be checked with all of 1D barcode symbologies. More...
 
int POSTAL_TYPES = 95
 Specifies that data will be checked with all of 1.5D POSTAL barcode symbologies, like Planet, Postnet, AustraliaPost, OneCode, RM4SCC, DutchKIX. More...
 
int MOST_COMMON_TYPES = 96
 Specifies that data will be checked with most commonly used symbologies. More...
 
int TYPES_2D = 98
 Specifies that data will be checked with all of 2D barcode symbologies. More...
 
int ALL_SUPPORTED_TYPES = 99
 Specifies that data will be checked with all available symbologies. More...
 
string javaClassName = "com.aspose.mw.barcode.recognition.MwDecodeTypeUtils"
 

Detailed Description

Specify the type of barcode to read.

This sample shows how to detect Code39 and Code128 barcodes.

reader = Recognition.BarCodeReader("test.png", None, [ DecodeType.CODE_39_STANDARD, DecodeType.CODE_128 ])
for result in reader.readBarCodes():
print("BarCode Type: " + result.getCodeTypeName())
print("BarCode CodeText: " + result.getCodeText())

Member Function Documentation

◆ containsAny()

def containsAny (   decodeType,
  decodeTypes 
)
static

◆ is1D()

def is1D (   symbology)
static

Determines if the specified BaseDecodeType contains any 1D barcode symbology.

Parameters
symbology:
Returns
: string true if BaseDecodeType contains any 1D barcode symbology; otherwise, returns false.

◆ is2D()

def is2D (   symbology)
static

Determines if the specified BaseDecodeType contains any 2D barcode symbology.

Parameters
symbology: symbology The BaseDecodeType to test.
Returns
: Returns true if BaseDecodeType contains any 2D barcode symbology; otherwise, returns false.

◆ isPostal()

def isPostal (   symbology)
static

Determines if the specified BaseDecodeType contains any Postal barcode symbology.

Parameters
symbology: symbology The BaseDecodeType to test
Returns
: Returns true if BaseDecodeType contains any Postal barcode symbology; otherwise, returns false.

Member Data Documentation

◆ ALL_SUPPORTED_TYPES

int ALL_SUPPORTED_TYPES = 99
static

Specifies that data will be checked with all available symbologies.

◆ AUSTRALIA_POST

int AUSTRALIA_POST = 37
static

Specifies that the data should be decoded with.

<b>Australia Post</b>

barcode specification

◆ AUSTRALIAN_POSTE_PARCEL

int AUSTRALIAN_POSTE_PARCEL = 50
static

Specifies that the data should be decoded with.

<b>Australian Post Domestic eParcel Barcode</b>

barcode specification

◆ AZTEC

int AZTEC = 33
static

Specifies that the data should be decoded with.

<b>Aztec</b>

barcode specification

◆ CODABAR

int CODABAR = 0
static

Specifies that the data should be decoded with.

<b>CODABAR</b>

barcode specification

◆ CODABLOCK_F

int CODABLOCK_F = 65
static

Specifies that the data should be decoded with.

<b>CodablockF</b>

barcode specification

◆ CODE_11

int CODE_11 = 1
static

Specifies that the data should be decoded with.

<b>CODE 11</b>

barcode specification

◆ CODE_128

int CODE_128 = 6
static

Specifies that the data should be decoded with.

<b>CODE 128</b>

barcode specification

◆ CODE_16_K

int CODE_16_K = 52
static

Specifies that the data should be decoded with.

<b>SCode16K</b>

barcode specification

◆ CODE_32

int CODE_32 = 61
static

Specifies that the data should be decoded with.

<b>Code32</b>

blank specification

◆ CODE_39_EXTENDED

int CODE_39_EXTENDED = 3
static

Specifies that the data should be decoded with.

<b>Extended CODE 39</b>

barcode specification

◆ CODE_39_STANDARD

int CODE_39_STANDARD = 2
static

Specifies that the data should be decoded with.

<b>Standard CODE 39</b>

barcode specification

◆ CODE_93_EXTENDED

int CODE_93_EXTENDED = 5
static

Specifies that the data should be decoded with.

<b>Extended CODE 93</b>

barcode specification

◆ CODE_93_STANDARD

int CODE_93_STANDARD = 4
static

Specifies that the data should be decoded with.

<b>Standard CODE 93</b>

barcode specification

◆ COMPACT_PDF_417

int COMPACT_PDF_417 = 57
static

Specifies that the data should be decoded with.

<b>CompactPdf417</b>

(Pdf417Truncated) barcode specification

◆ DATA_LOGIC_2_OF_5

int DATA_LOGIC_2_OF_5 = 62
static

Specifies that the data should be decoded with.

<b>DataLogic 2 of 5</b>

blank specification

◆ DATA_MATRIX

int DATA_MATRIX = 30
static

Specifies that the data should be decoded with.

<b>DataMatrix</b>

barcode symbology

◆ DATABAR_EXPANDED

int DATABAR_EXPANDED = 45
static

Specifies that the data should be decoded with.

<b>GS1 DATABAR expanded</b>

barcode specification

◆ DATABAR_EXPANDED_STACKED

int DATABAR_EXPANDED_STACKED = 55
static

Specifies that the data should be decoded with.

<b>GS1 DATABAR expanded stacked</b>

barcode specification

◆ DATABAR_LIMITED

int DATABAR_LIMITED = 44
static

Specifies that the data should be decoded with.

<b>GS1 DATABAR limited</b>

barcode specification

◆ DATABAR_OMNI_DIRECTIONAL

int DATABAR_OMNI_DIRECTIONAL = 42
static

Specifies that the data should be decoded with.

<b>GS1 DATABAR omni-directional</b>

barcode specification

◆ DATABAR_STACKED

int DATABAR_STACKED = 54
static

Specifies that the data should be decoded with.

<b>GS1 DATABAR stacked</b>

barcode specification

◆ DATABAR_STACKED_OMNI_DIRECTIONAL

int DATABAR_STACKED_OMNI_DIRECTIONAL = 53
static

Specifies that the data should be decoded with.

<b>GS1 DATABAR stacked omni-directional</b>

barcode specification

◆ DATABAR_TRUNCATED

int DATABAR_TRUNCATED = 43
static

Specifies that the data should be decoded with.

<b>GS1 DATABAR truncated</b>

barcode specification

◆ DEUTSCHE_POST_IDENTCODE

int DEUTSCHE_POST_IDENTCODE = 25
static

Specifies that the data should be decoded with.

<b>DeutschePost Ident code</b>

barcode specification

◆ DEUTSCHE_POST_LEITCODE

int DEUTSCHE_POST_LEITCODE = 26
static

Specifies that the data should be decoded with.

<b>DeutschePost Leit code</b>

barcode specification

◆ DOT_CODE

int DOT_CODE = 63
static

Specifies that the data should be decoded with.

<b>DotCode</b>

blank specification

◆ DUTCH_KIX

int DUTCH_KIX = 64
static

Specifies that the data should be decoded with.

<b>DotCode</b>

blank specification

◆ EAN_13

int EAN_13 = 9
static

Specifies that the data should be decoded with.

<b>EAN-13</b>

barcode specification

◆ EAN_14

int EAN_14 = 10
static

Specifies that the data should be decoded with.

<b>EAN14</b>

barcode specification

◆ EAN_8

int EAN_8 = 8
static

Specifies that the data should be decoded with.

<b>EAN-8</b>

barcode specification

◆ GS_1_AZTEC

int GS_1_AZTEC = 81
static

Specifies that the data should be decoded with.

<b>GS1 Aztec</b>

barcode specification

◆ GS_1_CODE_128

int GS_1_CODE_128 = 7
static

Specifies that the data should be decoded with.

<b>GS1 CODE 128</b>

barcode specification

◆ GS_1_COMPOSITE_BAR

int GS_1_COMPOSITE_BAR = 80
static

Specifies that the data should be decoded with.

<b>GS1 Composite Bar</b>

barcode specification

◆ GS_1_DATA_MATRIX

int GS_1_DATA_MATRIX = 31
static

Specifies that the data should be decoded with.

<b>GS1DataMatrix</b>

barcode symbology

◆ GS_1_DOT_CODE

int GS_1_DOT_CODE = 77
static

Specifies that the data should be decoded with.

<b>GS1 DotCode</b>

blank specification

◆ GS_1_HAN_XIN

int GS_1_HAN_XIN = 79
static

Specifies that the data should be decoded with Han Xin Code blank specification.

◆ GS_1_MICRO_PDF_417

int GS_1_MICRO_PDF_417 = 82
static

Specifies that the data should be decoded with MicroPdf417 barcode specification.

◆ GS_1_QR

int GS_1_QR = 58
static

Specifies that the data should be decoded with.

<b>GS1 QR</b>

barcode specification

◆ HAN_XIN

int HAN_XIN = 78
static

Specifies that the data should be decoded with Han Xin Code blank specification.

◆ HIBC_AZTEC_LIC

int HIBC_AZTEC_LIC = 69
static

Specifies that the data should be decoded with.

<b>HIBC LIC Aztec</b>

blank specification

◆ HIBC_AZTEC_PAS

int HIBC_AZTEC_PAS = 74
static

Specifies that the data should be decoded with.

<b>HIBC PAS Aztec</b>

blank specification

◆ HIBC_CODE_128_LIC

int HIBC_CODE_128_LIC = 68
static

Specifies that the data should be decoded with.

<b>HIBC LIC Code128</b>

blank specification

◆ HIBC_CODE_128_PAS

int HIBC_CODE_128_PAS = 73
static

Specifies that the data should be decoded with.

<b>HIBC PAS Code128</b>

blank specification

◆ HIBC_CODE_39_LIC

int HIBC_CODE_39_LIC = 67
static

Specifies that the data should be decoded with.

<b>HIBC LIC Code39</b>

blank specification

◆ HIBC_CODE_39_PAS

int HIBC_CODE_39_PAS = 72
static

Specifies that the data should be decoded with.

<b>HIBC PAS Code39</b>

blank specification

◆ HIBC_DATA_MATRIX_LIC

int HIBC_DATA_MATRIX_LIC = 70
static

Specifies that the data should be decoded with.

<b>HIBC LIC DataMatrix</b>

blank specification

◆ HIBC_DATA_MATRIX_PAS

int HIBC_DATA_MATRIX_PAS = 75
static

Specifies that the data should be decoded with.

<b>HIBC PAS DataMatrix</b>

blank specification

◆ HIBCQRLIC

int HIBCQRLIC = 71
static

Specifies that the data should be decoded with.

<b>HIBC LIC QR</b>

blank specification

◆ HIBCQRPAS

int HIBCQRPAS = 76
static

Specifies that the data should be decoded with.

<b>HIBC PAS QR</b>

blank specification

◆ IATA_2_OF_5

int IATA_2_OF_5 = 20
static

Specifies that the data should be decoded with.

<b>IATA 2 of 5</b>

barcode specification. IATA (International Air Transport Association) uses this barcode for the management of air cargo.

◆ INTERLEAVED_2_OF_5

int INTERLEAVED_2_OF_5 = 17
static

Specifies that the data should be decoded with.

<b>INTERLEAVED 2 of 5</b>

barcode specification

◆ ISBN

int ISBN = 15
static

Specifies that the data should be decoded with.

<b>ISBN</b>

barcode specification

◆ ISMN

int ISMN = 48
static

Specifies that the data should be decoded with.

<b>ISMN</b>

barcode specification

◆ ISSN

int ISSN = 47
static

Specifies that the data should be decoded with.

<b>ISSN</b>

barcode specification

◆ ITALIAN_POST_25

int ITALIAN_POST_25 = 19
static

Specifies that the data should be decoded with.

<b>Italian Post 25</b>

barcode specification

◆ ITF_14

int ITF_14 = 21
static

Specifies that the data should be decoded with.

<b>ITF14</b>

barcode specification

◆ ITF_6

int ITF_6 = 22
static

Specifies that the data should be decoded with.

<b>ITF6</b>

barcode specification

◆ javaClassName

string javaClassName = "com.aspose.mw.barcode.recognition.MwDecodeTypeUtils"
static

◆ MACRO_PDF_417

int MACRO_PDF_417 = 35
static

Specifies that the data should be decoded with.

<b>MacroPdf417</b>

barcode specification

◆ MAILMARK

int MAILMARK = 66
static

Specifies that the data should be decoded with Royal Mail Mailmark barcode specification.

◆ MATRIX_2_OF_5

int MATRIX_2_OF_5 = 18
static

Specifies that the data should be decoded with.

<b>Matrix 2 of 5</b>

barcode specification

◆ MAXI_CODE

int MAXI_CODE = 59
static

Specifies that the data should be decoded with.

<b>MaxiCode</b>

barcode specification

◆ MICR_E_13_B

int MICR_E_13_B = 60
static

Specifies that the data should be decoded with.

<b>MICR E-13B</b>

blank specification

◆ MICRO_PDF_417

int MICRO_PDF_417 = 36
static

Specifies that the data should be decoded with.

<b>MicroPdf417</b>

barcode specification

◆ MICRO_QR

int MICRO_QR = 56
static

Specifies that the data should be decoded with.

<b>MicroQR Code</b>

barcode specification

◆ MOST_COMMON_TYPES

int MOST_COMMON_TYPES = 96
static

Specifies that data will be checked with most commonly used symbologies.

◆ MSI

int MSI = 23
static

Specifies that the data should be decoded with.

<b>MSI Plessey</b>

barcode specification

◆ NONE

int NONE = -1
static

Unspecified decode type.

◆ ONE_CODE

int ONE_CODE = 40
static

Specifies that the data should be decoded with USPS.

<b>OneCode</b>

barcode specification

◆ OPC

int OPC = 27
static

Specifies that the data should be decoded with.

<b>OPC</b>

barcode specification

◆ PATCH_CODE

int PATCH_CODE = 46
static

Specifies that the data should be decoded with.

<b>Patch code</b>

barcode specification. Barcode symbology is used for automated scanning

◆ PDF_417

int PDF_417 = 34
static

Specifies that the data should be decoded with.

<b>Pdf417</b>

barcode symbology

◆ PHARMACODE

int PHARMACODE = 29
static

Specifies that the data should be decoded with.

<b>Pharmacode</b>

barcode. This symbology is also known as Pharmaceutical BINARY Code

◆ PLANET

int PLANET = 39
static

Specifies that the data should be decoded with.

<b>Planet</b>

barcode specification

◆ POSTAL_TYPES

int POSTAL_TYPES = 95
static

Specifies that data will be checked with all of 1.5D POSTAL barcode symbologies, like Planet, Postnet, AustraliaPost, OneCode, RM4SCC, DutchKIX.

◆ POSTNET

int POSTNET = 38
static

Specifies that the data should be decoded with.

<b>Postnet</b>

barcode specification

◆ PZN

int PZN = 28
static

Specifies that the data should be decoded with.

<b>PZN</b>

barcode specification. This symbology is also known as Pharma Zentral Nummer

◆ QR

int QR = 32
static

Specifies that the data should be decoded with.

<b>QR Code</b>

barcode specification

◆ RECT_MICRO_QR

int RECT_MICRO_QR = 83
static

Specifies that the data should be decoded with RectMicroQR (rMQR) Code barcode specification.

◆ RM_4_SCC

int RM_4_SCC = 41
static

Specifies that the data should be decoded with.

<b>RM4SCC</b>

barcode specification. RM4SCC (Royal Mail 4-state Customer Code) is used for automated mail sort process in UK.

◆ SCC_14

int SCC_14 = 11
static

Specifies that the data should be decoded with.

<b>SCC14</b>

barcode specification

◆ SSCC_18

int SSCC_18 = 12
static

Specifies that the data should be decoded with.

<b>SSCC18</b>

barcode specification

◆ STANDARD_2_OF_5

int STANDARD_2_OF_5 = 16
static

Specifies that the data should be decoded with.

<b>Standard 2 of 5</b>

barcode specification

◆ SUPPLEMENT

int SUPPLEMENT = 49
static

Specifies that the data should be decoded with.

<b>Supplement(EAN2 EAN5)</b>

barcode specification

◆ SWISS_POST_PARCEL

int SWISS_POST_PARCEL = 51
static

Specifies that the data should be decoded with.

<b>Swiss Post Parcel Barcode</b>

barcode specification

◆ TYPES_1D

int TYPES_1D = 97
static

Specifies that data will be checked with all of 1D barcode symbologies.

◆ TYPES_2D

int TYPES_2D = 98
static

Specifies that data will be checked with all of 2D barcode symbologies.

◆ UPCA

int UPCA = 13
static

Specifies that the data should be decoded with.

<b>UPC-A</b>

barcode specification

◆ UPCE

int UPCE = 14
static

Specifies that the data should be decoded with.

<b>UPC-E</b>

barcode specification

◆ VIN

int VIN = 24
static

Specifies that the data should be decoded with.

<b>VIN</b>

(Vehicle Identification Number) barcode specification