Table of Contents

Class BarcodeFormatUpcEanConfiguration

Namespace
ScanbotSDK.MAUI.Core.Barcode
Assembly
ScanbotSDK.Shared.dll

UPC/EAN barcode configuration. Add to scanner configuration to scan EAN-8, EAN-13, UPC-E and UPC-A barcodes.

public class BarcodeFormatUpcEanConfiguration : BarcodeFormatOneDConfigurationBase
Inheritance
BarcodeFormatUpcEanConfiguration
Inherited Members

Properties

BarcodeDefectProfile

Specifies which kind of barcode defects are tried to fix.

Default is GENERIC_AND_THERMAL.

public BarcodeDefectProfile BarcodeDefectProfile { get; set; }

Property Value

BarcodeDefectProfile

BlurryOneDScanner

If ENABLE, the scanner will try extra-hard to scan linear barcodes that are heavily blurred or otherwise damaged.

Default is ENABLE.

public ConfigState BlurryOneDScanner { get; set; }

Property Value

ConfigState

ConvertUpceToUpca

UPC-E is a 6-digit code, that has its equivalent in UPC-A 12-digit code with number system 0 or 1. If true, convert this 6-digit code into the corresponding 12-digit code. If false, return the UPC-E code as is.

Default is false.

public bool ConvertUpceToUpca { get; set; }

Property Value

bool

DamagedBarcodeReconstruction

If ENABLE, the scanner will try extra-hard to scan linear barcodes that are damaged in a way that every single scanline is corrupted, e.g. due to scratches, ink smudges, glare, or other damage or obstruction. Only affects the following barcode formats: Code39, Code128, Ean8, Ean13, and UpcA. Not used in low power or legacy mode.

Default is ENABLE.

public ConfigState DamagedBarcodeReconstruction { get; set; }

Property Value

ConfigState

Ean13

If true, scan and return valid EAN-13 barcodes.

Default is true.

public bool Ean13 { get; set; }

Property Value

bool

Ean8

If true, scan and return valid EAN-8 barcodes.

Default is true.

public bool Ean8 { get; set; }

Property Value

bool

Extensions

Behavior when scanning UPC/EAN barcodes with EAN-2 or EAN-5 extensions.

Default is ALLOW_ANY.

public UpcEanExtensionBehavior Extensions { get; set; }

Property Value

UpcEanExtensionBehavior

MinimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless

In case that EAN/UPC barcodes both with and without extensions are allowed, we require this number of frames on which the standalone EAN or UPC (i.e. without extension) has to be detected to be considered as valid (live scanning only). EAN/UPC barcodes with extensions are more prone to slicing (incomplete decoding). Increasing the number of frames on which a barcode has to decode to the same content reduces the probability that an extension is accidentally missed.

Default is 1.

public int MinimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless { get; set; }

Property Value

int

StripCheckDigits

If true, the check digits are stripped from the result.

Default is false.

public bool StripCheckDigits { get; set; }

Property Value

bool

Upca

If true, scan and return valid UPC-A barcodes. If false, but ean13 is true, then UPC-A barcodes will be returned as EAN-13 barcodes.

Default is true.

public bool Upca { get; set; }

Property Value

bool

Upce

If true, scan and return valid UPC-E barcodes.

Default is true.

public bool Upce { get; set; }

Property Value

bool

Methods

FromJson(string)

public static BarcodeFormatUpcEanConfiguration FromJson(string rawJson)

Parameters

rawJson string

Returns

BarcodeFormatUpcEanConfiguration