On this page

Stuck? Open a support ticket and the barKoder team will help. Open a ticket

Python API reference

Every method, setting, enum and result of the barKoder Python SDK, grouped by what you do with it.

This page will explain all available methods and configuration settings of the barKoder Barcode Scanner SDK for Python.

Import the barKoder Barcode Scanner SDK for Python with

Python
from Barkoder import BarkoderSDK

The API methods are available under the BarkoderSDK module (i.e. BarkoderSDK.methodName).

Scanning & session #

getLibVersion #

Python
getLibVersion()

Gets the SDK version.

Returns SDK version as str (Text Type).

Syntax:

Python
getLibVersion(): str

Usage example:

Python
version = BarkoderSDK.getLibVersion(); 
print("SDK version: ", version)

initialize #

Python
initialize(licenseKey)

Initializes the SDK with a license key.

Parameters:

licenseKey: str

Returns licensing status as str (Text Type).

Syntax:

Python
initialize(licenseKey: str): str

Usage example:

Python
status = BarkoderSDK.initialize("LICENSE_KEY"); print("SDK status: ", status)

setDecodingSpeed #

Python
setDecodingSpeed(decodingSpeed)

Sets the decoding speed.

Parameters:

decodingSpeed: int

The values for this setting are available under BarkoderSDK.constants["DecodingSpeed"]

Returns int (Numeric Type).

A value of 0 if OK, a value of -1 otherwise (argument was not good and nothing was done).

Syntax:

Python
setDecodingSpeed(decodingSpeed: int): int

Usage example:

Python
decodingSpeed = BarkoderSDK.constants["DecodingSpeed"]["Slow"];
BarkoderSDK.setDecodingSpeed(decodingSpeed);

setSpecificConfig #

Python
setSpecificConfig(decoder, settingType, value)

Sets a specific decoder config.

Parameters:

decoder: int, a value from BarkoderSDK.constants["Decoders"]

value: int, a flag value specific for the decoder

Returns int (Numeric Type).

Syntax:

setSpecificConfig(decoder: int, settingType: int, value: int): int

Usage example:

Python
decoder = BarkoderSDK.constants["Decoders"]["Msi"];
msiChecksumType = BarkoderSDK.constants["MsiChecksumType"]["mod1010"];
settingType = BarkoderSDK.constants["SettingType"]["checksumType"];
BarkoderSDK.setSpecificConfig(decoder, settingType, msiChecksumType);

Note: there are shorthand methods for setting specific configs for certain decoders (will be listed below). The above example for setting MSI checksum type can alternatively be done with:

Python
msiChecksumType = BarkoderSDK.constants["MsiChecksumType"]["mod1010"];
BarkoderSDK.setMsiChecksumType(msiChecksumType);

getDecodingSpeed #

Python
getDecodingSpeed()

Gets the decoding speed.

Returns decoding speed as int (Numeric Type).

Syntax:

Python
getDecodingSpeed(): int

Usage example:

Python
decodingSpeed = BarkoderSDK.getDecodingSpeed();
print("decodingSpeed: ", decodingSpeed)

Note: numerical value for decodingSpeed can be matched with corresponding key from BarkoderSDK.constants["DecodingSpeed"] for textual representation.

Barcode types #

setEnabledDecoders #

Python
setEnabledDecoders(decoders)

Sets the decoders to enable.

Parameters:

decoders: list, where each element has a value from BarkoderSDK.constants["Decoders"]

Returns int (Numeric Type).

A value of 0 if OK, a value of -1 otherwise (argument was not good and nothing was done).

Syntax:

Python
setEnabledDecoders(decoders: int): int

Usage example:

Python
decoders = BarkoderSDK.constants["Decoders"];
QR = decoders["QR"];
PDF417 = decoders["PDF417"];
Code128 = decoders["Code128"];
Datamatrix = decoders["Datamatrix"];
Code93 = decoders["Code93"];
Code39 = decoders["Code39"];
#set desired decoders
decoders = [QR, PDF417, Code128, Datamatrix, Code93, Code39];
BarkoderSDK.setEnabledDecoders(decoders);

setUpcEanDeblur #

Python
setUpcEanDeblur(upcEanDeblur)

Sets the deblur for UPC and EAN codes.

Parameters:

upcEanDeblur: int

The values for this setting are available under BarkoderSDK.constants["UpcEanDeblur"]

Returns int (Numeric Type).

A value of 0 if OK, a value of -1 otherwise (argument was not good and nothing was done).

Syntax:

Python
setUpcEanDeblur(upcEanDeblur: int): int

Usage example:

Python
upcEanDeblur = BarkoderSDK.constants["UpcEanDeblur"]["Enable"];
BarkoderSDK.setUpcEanDeblur(upcEanDeblur);

setLengthRange #

Python
setLengthRange(decoder, minimumLength, maximumLength)

Sets the length range for 1D codes.

Parameters:

decoder: int, a value from BarkoderSDK.constants["Decoders"]

minimumLength: int

maximumLength: int

Returns int (Numeric Type).

Syntax:

Python
setLengthRange(decoder: int, minimumLength: int, maximumLength: int): int

Usage example:

Python
decoder = BarkoderSDK.constants["Decoders"]["Code39"];
BarkoderSDK.setLengthRange(decoder, 5, 50);

setFormatting #

Python
setFormatting(formatting)

Sets the formatting of the result.

Parameters:

formatting: int

The values for this setting are available under BarkoderSDK.constants["Formatting"]

Returns int (Numeric Type).

A value of 0 if OK, a value of -1 otherwise (argument was not good and nothing was done).

Syntax:

Python
setFormatting(formatting: int): int

Usage example:

Python
formatting = BarkoderSDK.constants["Formatting"]["AAMVA"];
BarkoderSDK.setFormatting(formatting);

setEnableMisshaped1D #

Python
setEnableMisshaped1D(enableMisshaped1D)

Sets detection of misshaped 1D codes.

Parameters:

enableMisshaped1D: int

The values for this setting are available under BarkoderSDK.constants["EnableMisshaped1D"]

Returns int (Numeric Type).

A value of 0 if OK, a value of -1 otherwise (argument was not good and nothing was done).

Syntax:

Python
setEnableMisshaped1D(enableMisshaped1D: int): int

Usage example:

Python
enableMisshaped1D = BarkoderSDK.constants["EnableMisshaped1D"]["Enable"];
BarkoderSDK.setEnableMisshaped1D(enableMisshaped1D);

setEnableVINRestrictions #

Python
setEnableVINRestrictions(enableVINRestrictions)

Sets VIN Restrictions.

Parameters:

enableVINRestrictions: int

The values for this setting are available under BarkoderSDK.constants["EnableVINRestrictions"]

Returns int (Numeric Type).

A value of 0 if OK, a value of -1 otherwise (argument was not good and nothing was done).

Syntax:

Python
setEnableVINRestrictions(enableVINRestrictions: int): int

Usage example:

Python
enableVINRestrictions = BarkoderSDK.constants["EnableVINRestrictions"]["Enable"];
BarkoderSDK.setEnableVINRestrictions(enableVINRestrictions);

setEnableComposite #

Python
setEnableComposite(enableComposite)

Sets whether GS1 Composite Barcodes is enabled.

Parameters:

enableComposite: int

The values for this setting are 0 (Disable) and 1 (Enable).

Returns int (Numeric Type).

A value of 0 if OK, a value of -1 otherwise (argument was not good and nothing was done).

Syntax:

Python
setEnableComposite(enableComposite: int): int

Usage example:

Python
BarkoderSDK.setEnableComposite(1);

setCode11ChecksumType #

Python
setCode11ChecksumType(code11ChecksumType)

Sets Code11 checksum type.

Parameters:

code11ChecksumType: int, a value from BarkoderSDK.constants["Code11ChecksumType"]

Returns NoneType (None Type).

Syntax:

Python
setCode11ChecksumType(code11ChecksumType: int): NoneType

Usage example:

Python
code11ChecksumType = BarkoderSDK.constants["Code11ChecksumType"]["single"];
BarkoderSDK.setCode11ChecksumType(code11ChecksumType);

setCode39ChecksumType #

Python
setCode39ChecksumType(code39ChecksumType)

Sets Code39 checksum type.

Parameters:

code39ChecksumType: int, a value from BarkoderSDK.constants["Code39ChecksumType"]

Returns NoneType (None Type).

Syntax:

Python
setCode39ChecksumType(code39ChecksumType: int): NoneType

Usage example:

Python
code39ChecksumType = BarkoderSDK.constants["Code39ChecksumType"]["enabled"];
BarkoderSDK.setCode39ChecksumType(code39ChecksumType);

setMsiChecksumType #

Python
setMsiChecksumType(msiChecksumType)

Sets MSI checksum type.

Parameters:

msiChecksumType: int, a value from BarkoderSDK.constants["MsiChecksumType"]

Returns NoneType (None Type).

Syntax:

Python
setMsiChecksumType(msiChecksumType: int): NoneType

Usage example:

Python
msiChecksumType = BarkoderSDK.constants["MsiChecksumType"]["mod1010"];
BarkoderSDK.setMsiChecksumType(msiChecksumType);

setDatamatrixDpmModeEnabled #

Python
setDatamatrixDpmModeEnabled(dpmModeEnabled)

Sets DPM mode for Datamatrix.

Parameters:

dpmModeEnabled: bool | int

Returns NoneType (None Type).

Syntax:

Python
setDatamatrixDpmModeEnabled(dpmModeEnabled: bool | int): NoneType

Usage example:

Python
BarkoderSDK.setDatamatrixDpmModeEnabled(True);

setQRDpmModeEnabled #

Python
setQRDpmModeEnabled(dpmModeEnabled)

Sets DPM mode for QR.

Parameters:

dpmModeEnabled: bool | int

Returns NoneType (None Type).

Syntax:

Python
setQRDpmModeEnabled(dpmModeEnabled: bool | int): NoneType

Usage example:

Python
BarkoderSDK.setQRDpmModeEnabled(True);

setQRMicroDpmModeEnabled #

Python
setQRMicroDpmModeEnabled(dpmModeEnabled)

Sets DPM mode for QRMicro.

Parameters:

dpmModeEnabled: bool | int

Returns NoneType (None Type).

Syntax:

Python
setQRMicroDpmModeEnabled(dpmModeEnabled: bool | int): NoneType

Usage example:

Python
BarkoderSDK.setQRMicroDpmModeEnabled(True);

getCode11ChecksumType #

Gets the Code11 checksum type.

Returns int (Numeric Type).

Syntax:

Python
getCode11ChecksumType(): int

Usage example:

Python
checksumType = BarkoderSDK.getCode11ChecksumType();

Note: numerical value for Code11 checksumType can be matched with corresponding key from BarkoderSDK.constants["Code11ChecksumType"] for textual representation.

getCode39ChecksumType #

Gets the Code39 checksum type.

Returns int (Numeric Type).

Syntax:

Python
getCode39ChecksumType(): int

Usage example:

Python
checksumType = BarkoderSDK.getCode39ChecksumType();

Note: numerical value for Code39 checksumType can be matched with corresponding key from BarkoderSDK.constants["Code39ChecksumType"] for textual representation.

getMsiChecksumType #

Gets the MSI checksum type.

Returns int (Numeric Type).

Syntax:

Python
getMsiChecksumType(): int

Usage example:

Python
checksumType = BarkoderSDK.getMsiChecksumType();

Note: numerical value for MSI checksumType can be matched with corresponding key from BarkoderSDK.constants["MsiChecksumType"] for textual representation.

getDatamatrixDpmModeEnabled #

Gets the DPM mode for Datamatrix.

Returns int (Numeric Type).

Syntax:

Python
getDatamatrixDpmModeEnabled(): int

Usage example:

Python
dpmModeEnabled = BarkoderSDK.getDatamatrixDpmModeEnabled();

getQRDpmModeEnabled #

Gets the DPM mode for QR.

Returns int (Numeric Type).

Syntax:

Python
getQRDpmModeEnabled(): int

Usage example:

Python
dpmModeEnabled = BarkoderSDK.getQRDpmModeEnabled();

getQRMicroDpmModeEnabled #

Gets the DPM mode for QRMicro.

Returns int (Numeric Type).

Syntax:

Python
getQRMicroDpmModeEnabled(): int

Usage example:

Python
dpmModeEnabled = BarkoderSDK.getQRMicroDpmModeEnabled();

getLengthRange #

Python
getLengthRange(decoderType)

Gets the length range for 1D codes.

Parameters:

decoder: int, a value from BarkoderSDK.constants["Decoders"]

Returns a tuple (minimumLength: int, maximumLength: int)

Syntax:

Python
getLengthRange(decoderType: int): (int, int)

Usage example:

Python
decoder = BarkoderSDK.constants["Decoders"]["Code39"];
lengthRange = BarkoderSDK.getLengthRange(decoder);

getUpcEanDeblur #

Python
getUpcEanDeblur()

Gets the deblur for UPC and EAN codes.

Returns deblur as int (Numeric Type).

Syntax:

Python
getUpcEanDeblur(): int

Usage example:

Python
upcEanDeblur = BarkoderSDK.getUpcEanDeblur();
print("upcEanDeblur: ", upcEanDeblur)

Note: numerical value for upcEanDeblur can be matched with corresponding key from BarkoderSDK.constants["UpcEanDeblur"] for textual representation.

getFormatting #

Python
getFormatting()

Gets the formatting.

Returns formatting as int (Numeric Type).

Syntax:

Python
getFormatting(): int

Usage example:

Python
formatting = BarkoderSDK.getFormatting();
print("formatting: ", formatting)

Note: numerical value for formatting can be matched with corresponding key from BarkoderSDK.constants["Formatting"] for textual representation.

getEnableMisshaped1D #

Python
getEnableMisshaped1D()

Gets the misshaped 1D enabled state.

Returns enableMisshaped1D setting as int (Numeric Type).

Syntax:

Python
getEnableMisshaped1D(): int

Usage example:

Python
enableMisshaped1D = BarkoderSDK.getEnableMisshaped1D();
print("enableMisshaped1D: ", enableMisshaped1D)

Note: numerical value for enableMisshaped1D can be matched with corresponding key from BarkoderSDK.constants["EnableMisshaped1D"] for textual representation.

getEnableVINRestrictions #

Python
getEnableVINRestrictions()

Gets the VIN restrictions enabled state.

Returns enableVINRestrictions setting as int (Numeric Type).

Syntax:

Python
getEnableVINRestrictions(): int

Usage example:

Python
enableVINRestrictions = BarkoderSDK.getEnableVINRestrictions();
print("enableVINRestrictions: ", enableVINRestrictions)

Note: numerical value for enableVINRestrictions can be matched with corresponding key from BarkoderSDK.constants["EnableVINRestrictions"] for textual representation.

setCustomOption #

Python
setCustomOption(customOption, value)

Sets a custom decoder option by key.

See more details about available options and their values.

Parameters:

customOption: str

value: int

Returns int (Numeric Type).

A value of 0 if OK, a value of -1 otherwise (argument was not good and nothing was done).

Syntax:

Python
setCustomOption(customOption: str, value: int): int

Usage example:

Python
BarkoderSDK.setCustomOption("relaxed_2d_location", 1)

Results #

decodeImage #

Python
decodeImage(image, width, height)

Scans grayscale array of image memory.

Parameters:

image: numpy.ndarray

width: int

height: int

Returns JSON result as str (Text Type) with the following fields:

Python
resultsCount: int
barcodeTypeName: str
textualData: str
binaryData: list where each element is an int
location: dict, containing
	p1: dict, containing
		 x: float
		 y: float
	p2: dict, containing
		 x: float
		 y: float
	p3: dict, containing
		 x: float
		 y: float
	p4: dict, containing
		 x: float
		 y: float
gs1: int

The resultsCount field determines the result structure.

resultsCount 0 means no results were found, and remaining fields will not be present.

resultsCount 1 means exactly one barcode result was found and above fields will be present.

resultsCount 2 or higher means multiple barcode results were found, and result fields are as follows:

Python
resultsCount: int
results: list, where each element is a dict with the following fields:
	barcodeTypeName: str
	textualData: str
	binaryData: list where each element is an int
	location: dict, containing
		p1: dict, containing
			 x: float
			 y: float
		p2: dict, containing
			 x: float
			 y: float
		p3: dict, containing
			 x: float
			 y: float
		p4: dict, containing
			 x: float
			 y: float
	gs1: int

Syntax:

Python
decodeImage(image: numpy.ndarray, width: int, height: int): str

Usage example:

Python
import json
import numpy as np
import cv2 as cv

img = cv.imread('qr.bmp', cv.IMREAD_GRAYSCALE)
assert img is not None, "file could not be read, check with os.path.exists()"

height, width = img.shape[:2]

result_json = BarkoderSDK.decodeImage(img, width, height)
result = json.loads(result_json)

setDuplicatesDelayMs #

Python
setDuplicatesDelayMs(duplicatesDelayMs)

Set the delay for duplicate results.

Parameters:

duplicatesDelayMs: int

The value for this setting is in milliseconds.

Returns int (Numeric Type).

A value of 0 if OK, a value of -1 otherwise (argument was not good and nothing was done).

Syntax:

Python
setDuplicatesDelayMs(duplicatesDelayMs: int): int

Usage example:

Python
BarkoderSDK.setDuplicatesDelayMs(3000);

setMaximumResultsCount #

Python
setMaximumResultsCount(maximumResultsCount)

Sets the maximum results returned.

Parameters:

maximumResultsCount: int

Returns int (Numeric Type).

A value of 0 if OK, a value of -1 otherwise (argument was not good and nothing was done).

Syntax:

setMaximumResultsCount(maximumResultsCount: int): int

Usage example:

Python
BarkoderSDK.setMaximumResultsCount(10);

setMulticodeCachingEnabled #

Python
setMulticodeCachingEnabled(multicodeCachingEnabled)

Sets multicode caching.

Parameters:

multicodeCachingEnabled: int, accepts 0 (disable) and 1 (enable)

Returns int (Numeric Type).

A value of 0 if OK, a value of -1 otherwise (argument was not good and nothing was done).

Syntax:

setMulticodeCachingEnabled(multicodeCachingEnabled: int): int

Usage example:

Python
BarkoderSDK.setMulticodeCachingEnabled(1);

setMulticodeCachingDuration #

Python
setMulticodeCachingDuration(multicodeCachingDuration)

Sets multicode caching duration. Note: this setting typically is beneficial if scanning from a live camera stream.

Parameters:

multicodeCachingDuration: int

Returns int (Numeric Type).

A value of 0 if OK, a value of -1 otherwise (argument was not good and nothing was done).

Syntax:

Python
setMulticodeCachingDuration(multicodeCachingDuration: int): int

Usage example:

Python
BarkoderSDK.setMulticodeCachingDuration(3000);

getDuplicatesDelayMs #

Python
getDuplicatesDelayMs()

Gets the duplicates delay.

Returns duplicates delay as int (Numeric Type).

Syntax:

Python
getDuplicatesDelayMs(): int

Usage example:

Python
duplicatesDelayMs = BarkoderSDK.getDuplicatesDelayMs();
print("duplicatesDelayMs: ", duplicatesDelayMs)

getMaximumResultsCount #

Python
getMaximumResultsCount()

Gets the maximum results count.

Returns maximum results count as int (Numeric Type).

Syntax:

Python
getMaximumResultsCount(): int

Usage example:

Python
maximumResultsCount = BarkoderSDK.getMaximumResultsCount();
print("maximumResultsCount: ", maximumResultsCount)

Region & overlay #

setRegionOfInterest #

Python
setRegionOfInterest(left, top, width, height)

Sets the ROI.

Parameters:

left: float

top: float

width: float

height: float

Returns NoneType (None Type).

Syntax:

Python
setRegionOfInterest(left: float, top: float, width: float, height: float): NoneType

Usage example:

Python
BarkoderSDK.setRegionOfInterest(0, 0, 100, 100);

getRegionOfInterest #

Python
getRegionOfInterest()

Gets the ROI.

Returns str (Text Type).

Syntax:

Python
getRegionOfInterest(): str

Usage example:

Python
roi_json = BarkoderSDK.getRegionOfInterest(); 
roi = json.loads(roi_json)

Enums #

The SDK constants are available under the BarkoderSDK module (i.e. BarkoderSDK.constants).

DecodingSpeed #

  • "Fast": int(0)
  • "Normal": int(1)
  • "Slow": int(2)
  • "Rigorous": int(3)

Note: "Rigorous" / int(3) is quite demanding on the device hardware - it may find more results, but will also take longer to do so. It is only recommended when scanning from an image.

Usage example:

Python
decodingSpeed = BarkoderSDK.constants["DecodingSpeed"]["Slow"];
BarkoderSDK.setDecodingSpeed(decodingSpeed);

Decoders #

  • "Aztec": int(0)
  • "AztecCompact": int(1)
  • "QR": int(2)
  • "QRMicro": int(3)
  • "Code128": int(4)
  • "Code93": int(5)
  • "Code39": int(6)
  • "Codabar": int(7)
  • "Code11": int(8)
  • "Msi": int(9)
  • "UpcA": int(10)
  • "UpcE": int(11)
  • "UpcE1": int(12)
  • "Ean13": int(13)
  • "Ean8": int(14)
  • "PDF417": int(15)
  • "PDF417Micro": int(16)
  • "Datamatrix": int(17)
  • "Code25": int(18)
  • "Interleaved25": int(19)
  • "ITF14": int(20)
  • "IATA25": int(21)
  • "Matrix25": int(22)
  • "Datalogic25": int(23)
  • "COOP25": int(24)
  • "Code32": int(25)
  • "Telepen": int(26)
  • "Dotcode": int(27)
  • "Databar14": int(29)
  • "DatabarLimited": int(30)
  • "DatabarExpanded": int(31)
  • "PostalIMB": int(32)
  • "Postnet": int(33)
  • "Planet": int(34)
  • "AustralianPost": int(35)
  • "RoyalMail": int(36)
  • "KIX": int(37)
  • "JapanesePost": int(38)
  • "MaxiCode": int(39)

Usage example:

Python
decoders = BarkoderSDK.constants["Decoders"];
QR = decoders["QR"];
PDF417 = decoders["PDF417"];
Code128 = decoders["Code128"];
Datamatrix = decoders["Datamatrix"];
Code93 = decoders["Code93"];
Code39 = decoders["Code39"];
Python
#set desired decoders
decoders = [QR, PDF417, Code128, Datamatrix, Code93, Code39];
BarkoderSDK.setEnabledDecoders(decoders);

Code11ChecksumType #

  • "disabled": int(0)
  • "single": int(1)
  • "double": int(2)

Usage example:

Python
code11ChecksumType = BarkoderSDK.constants["Code11ChecksumType"]["single"];
BarkoderSDK.setCode11ChecksumType(code11ChecksumType);

Code39ChecksumType #

  • "disabled": int(0)
  • "enabled": int(1)

Usage example:

Python
code39ChecksumType = BarkoderSDK.constants["Code39ChecksumType"]["enabled"];
BarkoderSDK.setCode39ChecksumType(code39ChecksumType);

MsiChecksumType #

  • "disabled": int(0)
  • "mod10": int(1)
  • "mod11": int(2)
  • "mod1010": int(3)
  • "mod1110": int(4)
  • "mod11IBM": int(5)
  • "mod1110IBM": int(6)

Usage example:

Python
msiChecksumType = BarkoderSDK.constants["MsiChecksumType"]["mod1010"];
BarkoderSDK.setMsiChecksumType(msiChecksumType);

SettingType #

  • "checksumType": int(0)
  • "expandToUPCA": int(1)
  • "dpmMode": int(2)
  • "multiPartMerge": int(3)

Usage example:

Python
dpmMode = BarkoderSDK.getSpecificConfig(BarkoderSDK.constants["Decoders"]["Datamatrix"], BarkoderSDK.constants["SettingType"]["dpmMode"]);

UpcEanDeblur #

  • "Disable": int(0)
  • "Enable": int(1)

Usage example:

Python
upcEanDeblur = BarkoderSDK.constants["UpcEanDeblur"]["Enable"];
BarkoderSDK.setUpcEanDeblur(upcEanDeblur);

MulticodeCachingEnabled #

  • "Disable": int(0)
  • "Enable": int(1)

Usage example:

Python
multicodeCachingEnabled = BarkoderSDK.constants["MulticodeCachingEnabled"]["Enable"];
BarkoderSDK.setMulticodeCachingEnabled(multicodeCachingEnabled);

EnableMisshaped1D #

  • "Disable": int(0)
  • "Enable": int(1)

Usage example:

Python
enableMisshaped1D = BarkoderSDK.constants["EnableMisshaped1D"]["Enable"]; 
BarkoderSDK.setEnableMisshaped1D(enableMisshaped1D);

EnableVINRestrictions #

  • "Disable": int(0)
  • "Enable": int(1)

Usage example:

Python
enableVINRestrictions = BarkoderSDK.constants["EnableVINRestrictions"]["Enable"];
BarkoderSDK.setEnableVINRestrictions(enableVINRestrictions);

Formatting #

  • "Disabled": int(0)
  • "Automatic": int(1)
  • "GS1": int(2)
  • "AAMVA": int(3)
  • "SADL": int(4)
  • "BCBP": int(5)

Usage example:

Python
formatting = BarkoderSDK.constants["Formatting"]["AAMVA"];
BarkoderSDK.setFormatting(formatting);