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 :param symbology: :return: string true if BaseDecodeType contains any 1D barcode symbology; otherwise, returns false. More...
 
def isPostal (symbology)
 Determines if the specified BaseDecodeType contains any Postal barcode symbology :param symbology: symbology The BaseDecodeType to test :return: Returns true if BaseDecodeType contains any Postal barcode symbology; otherwise, returns false. More...
 
def is2D (symbology)
 
def containsAny (decodeType, decodeTypes)
 

Static Public Attributes

int NONE = -1
 
int CODABAR = 0
 
int CODE_11 = 1
 
int CODE_39_STANDARD = 2
 
int CODE_39_EXTENDED = 3
 
int CODE_93_STANDARD = 4
 
int CODE_93_EXTENDED = 5
 
int CODE_128 = 6
 
int GS_1_CODE_128 = 7
 
int EAN_8 = 8
 
int EAN_13 = 9
 
int EAN_14 = 10
 
int SCC_14 = 11
 
int SSCC_18 = 12
 
int UPCA = 13
 
int UPCE = 14
 
int ISBN = 15
 
int STANDARD_2_OF_5 = 16
 
int INTERLEAVED_2_OF_5 = 17
 
int MATRIX_2_OF_5 = 18
 
int ITALIAN_POST_25 = 19
 
int IATA_2_OF_5 = 20
 
int ITF_14 = 21
 
int ITF_6 = 22
 
int MSI = 23
 
int VIN = 24
 
int DEUTSCHE_POST_IDENTCODE = 25
 
int DEUTSCHE_POST_LEITCODE = 26
 
int OPC = 27
 
int PZN = 28
 
int PHARMACODE = 29
 
int DATA_MATRIX = 30
 
int GS_1_DATA_MATRIX = 31
 
int QR = 32
 
int AZTEC = 33
 
int PDF_417 = 34
 
int MACRO_PDF_417 = 35
 
int MICRO_PDF_417 = 36
 
int CODABLOCK_F = 65
 
int MAILMARK = 66
 
int AUSTRALIA_POST = 37
 
int POSTNET = 38
 
int PLANET = 39
 
int ONE_CODE = 40
 
int RM_4_SCC = 41
 
int DATABAR_OMNI_DIRECTIONAL = 42
 
int DATABAR_TRUNCATED = 43
 
int DATABAR_LIMITED = 44
 
int DATABAR_EXPANDED = 45
 
int DATABAR_STACKED_OMNI_DIRECTIONAL = 53
 
int DATABAR_STACKED = 54
 
int DATABAR_EXPANDED_STACKED = 55
 
int PATCH_CODE = 46
 
int ISSN = 47
 
int ISMN = 48
 
int SUPPLEMENT = 49
 
int AUSTRALIAN_POSTE_PARCEL = 50
 
int SWISS_POST_PARCEL = 51
 
int CODE_16_K = 52
 
int MICRO_QR = 56
 
int COMPACT_PDF_417 = 57
 
int GS_1_QR = 58
 
int MAXI_CODE = 59
 
int MICR_E_13_B = 60
 
int CODE_32 = 61
 
int DATA_LOGIC_2_OF_5 = 62
 
int DOT_CODE = 63
 
int GS_1_DOT_CODE = 77
 
int DUTCH_KIX = 64
 
int HIBC_CODE_39_LIC = 67
 
int HIBC_CODE_128_LIC = 68
 
int HIBC_AZTEC_LIC = 69
 
int HIBC_DATA_MATRIX_LIC = 70
 
int HIBCQRLIC = 71
 
int HIBC_CODE_39_PAS = 72
 
int HIBC_CODE_128_PAS = 73
 
int HIBC_AZTEC_PAS = 74
 
int HIBC_DATA_MATRIX_PAS = 75
 
int HIBCQRPAS = 76
 
int TYPES_1D = 97
 
int POSTAL_TYPES = 95
 
int MOST_COMMON_TYPES = 96
 
int TYPES_2D = 98
 
int ALL_SUPPORTED_TYPES = 99
 
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 :param symbology: :return: string true if BaseDecodeType contains any 1D barcode symbology; otherwise, returns false.

◆ is2D()

def is2D (   symbology)
static
Determines if the specified <see cref="BaseDecodeType"/> contains any 2D barcode symbology
:param symbology: symbology The <see cref="BaseDecodeType"/> to test.
:return: Returns <b>true</b> if <see cref="BaseDecodeType"/> contains any 2D barcode symbology; otherwise, returns <b>false</b>.

◆ isPostal()

def isPostal (   symbology)
static

Determines if the specified BaseDecodeType contains any Postal barcode symbology :param symbology: symbology The BaseDecodeType to test :return: Returns true if BaseDecodeType contains any Postal barcode symbology; otherwise, returns false.

Member Data Documentation

◆ ALL_SUPPORTED_TYPES

int ALL_SUPPORTED_TYPES = 99
static

◆ AUSTRALIA_POST

int AUSTRALIA_POST = 37
static

◆ AUSTRALIAN_POSTE_PARCEL

int AUSTRALIAN_POSTE_PARCEL = 50
static

◆ AZTEC

int AZTEC = 33
static

◆ CODABAR

int CODABAR = 0
static

◆ CODABLOCK_F

int CODABLOCK_F = 65
static

◆ CODE_11

int CODE_11 = 1
static

◆ CODE_128

int CODE_128 = 6
static

◆ CODE_16_K

int CODE_16_K = 52
static

◆ CODE_32

int CODE_32 = 61
static

◆ CODE_39_EXTENDED

int CODE_39_EXTENDED = 3
static

◆ CODE_39_STANDARD

int CODE_39_STANDARD = 2
static

◆ CODE_93_EXTENDED

int CODE_93_EXTENDED = 5
static

◆ CODE_93_STANDARD

int CODE_93_STANDARD = 4
static

◆ COMPACT_PDF_417

int COMPACT_PDF_417 = 57
static

◆ DATA_LOGIC_2_OF_5

int DATA_LOGIC_2_OF_5 = 62
static

◆ DATA_MATRIX

int DATA_MATRIX = 30
static

◆ DATABAR_EXPANDED

int DATABAR_EXPANDED = 45
static

◆ DATABAR_EXPANDED_STACKED

int DATABAR_EXPANDED_STACKED = 55
static

◆ DATABAR_LIMITED

int DATABAR_LIMITED = 44
static

◆ DATABAR_OMNI_DIRECTIONAL

int DATABAR_OMNI_DIRECTIONAL = 42
static

◆ DATABAR_STACKED

int DATABAR_STACKED = 54
static

◆ DATABAR_STACKED_OMNI_DIRECTIONAL

int DATABAR_STACKED_OMNI_DIRECTIONAL = 53
static

◆ DATABAR_TRUNCATED

int DATABAR_TRUNCATED = 43
static

◆ DEUTSCHE_POST_IDENTCODE

int DEUTSCHE_POST_IDENTCODE = 25
static

◆ DEUTSCHE_POST_LEITCODE

int DEUTSCHE_POST_LEITCODE = 26
static

◆ DOT_CODE

int DOT_CODE = 63
static

◆ DUTCH_KIX

int DUTCH_KIX = 64
static

◆ EAN_13

int EAN_13 = 9
static

◆ EAN_14

int EAN_14 = 10
static

◆ EAN_8

int EAN_8 = 8
static

◆ GS_1_CODE_128

int GS_1_CODE_128 = 7
static

◆ GS_1_DATA_MATRIX

int GS_1_DATA_MATRIX = 31
static

◆ GS_1_DOT_CODE

int GS_1_DOT_CODE = 77
static

◆ GS_1_QR

int GS_1_QR = 58
static

◆ HIBC_AZTEC_LIC

int HIBC_AZTEC_LIC = 69
static

◆ HIBC_AZTEC_PAS

int HIBC_AZTEC_PAS = 74
static

◆ HIBC_CODE_128_LIC

int HIBC_CODE_128_LIC = 68
static

◆ HIBC_CODE_128_PAS

int HIBC_CODE_128_PAS = 73
static

◆ HIBC_CODE_39_LIC

int HIBC_CODE_39_LIC = 67
static

◆ HIBC_CODE_39_PAS

int HIBC_CODE_39_PAS = 72
static

◆ HIBC_DATA_MATRIX_LIC

int HIBC_DATA_MATRIX_LIC = 70
static

◆ HIBC_DATA_MATRIX_PAS

int HIBC_DATA_MATRIX_PAS = 75
static

◆ HIBCQRLIC

int HIBCQRLIC = 71
static

◆ HIBCQRPAS

int HIBCQRPAS = 76
static

◆ IATA_2_OF_5

int IATA_2_OF_5 = 20
static

◆ INTERLEAVED_2_OF_5

int INTERLEAVED_2_OF_5 = 17
static

◆ ISBN

int ISBN = 15
static

◆ ISMN

int ISMN = 48
static

◆ ISSN

int ISSN = 47
static

◆ ITALIAN_POST_25

int ITALIAN_POST_25 = 19
static

◆ ITF_14

int ITF_14 = 21
static

◆ ITF_6

int ITF_6 = 22
static

◆ javaClassName

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

◆ MACRO_PDF_417

int MACRO_PDF_417 = 35
static

◆ MAILMARK

int MAILMARK = 66
static

◆ MATRIX_2_OF_5

int MATRIX_2_OF_5 = 18
static

◆ MAXI_CODE

int MAXI_CODE = 59
static

◆ MICR_E_13_B

int MICR_E_13_B = 60
static

◆ MICRO_PDF_417

int MICRO_PDF_417 = 36
static

◆ MICRO_QR

int MICRO_QR = 56
static

◆ MOST_COMMON_TYPES

int MOST_COMMON_TYPES = 96
static

◆ MSI

int MSI = 23
static

◆ NONE

int NONE = -1
static

◆ ONE_CODE

int ONE_CODE = 40
static

◆ OPC

int OPC = 27
static

◆ PATCH_CODE

int PATCH_CODE = 46
static

◆ PDF_417

int PDF_417 = 34
static

◆ PHARMACODE

int PHARMACODE = 29
static

◆ PLANET

int PLANET = 39
static

◆ POSTAL_TYPES

int POSTAL_TYPES = 95
static

◆ POSTNET

int POSTNET = 38
static

◆ PZN

int PZN = 28
static

◆ QR

int QR = 32
static

◆ RM_4_SCC

int RM_4_SCC = 41
static

◆ SCC_14

int SCC_14 = 11
static

◆ SSCC_18

int SSCC_18 = 12
static

◆ STANDARD_2_OF_5

int STANDARD_2_OF_5 = 16
static

◆ SUPPLEMENT

int SUPPLEMENT = 49
static

◆ SWISS_POST_PARCEL

int SWISS_POST_PARCEL = 51
static

◆ TYPES_1D

int TYPES_1D = 97
static

◆ TYPES_2D

int TYPES_2D = 98
static

◆ UPCA

int UPCA = 13
static

◆ UPCE

int UPCE = 14
static

◆ VIN

int VIN = 24
static