Class BarcodeFormatCommonConfiguration
- Namespace
- ScanbotSDK.MAUI.Core.Barcode
- Assembly
- ScanbotSDK.Shared.dll
Convenience configuration for enabling the scanning of multiple barcode formats with a common configuration. Add to scanner configuration to enable and configure the scanning of multiple barcodes.
The given configuration will be applied to all enabled barcode formats, if they support it. You can override the common configuration for individual barcode formats by additionally adding their specific configuration to the scanner's configuration.
public class BarcodeFormatCommonConfiguration : BarcodeFormatConfigurationBase
- Inheritance
-
BarcodeFormatCommonConfiguration
- 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
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
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
Formats
List of barcode formats to scan. By default, the most commonly used formats are enabled.
public BarcodeFormat[] Formats { get; set; }
Property Value
Gs1Handling
GS1 message handling options.
Default is PARSE.
public Gs1Handling Gs1Handling { get; set; }
Property Value
MaximumTextLength
Maximum text length. 0 implies no maximum. Applied only to linear barcode formats that allow variable length.
Default is 0.
public int MaximumTextLength { get; set; }
Property Value
Minimum1DQuietZoneSize
Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules. The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
Default is 6.
public int Minimum1DQuietZoneSize { get; set; }
Property Value
MinimumNumberOfRequiredFramesWithEqualRecognitionResult
Minimum number of frames on which a linear (1D) barcode has to be detected to be considered valid (live scanning only). Linear barcodes are more prone to false positives. Increasing the number of frames on which a barcode has to decode to the same content reduces the probability of a false positive.
Default is 1.
public int MinimumNumberOfRequiredFramesWithEqualRecognitionResult { get; set; }
Property Value
MinimumTextLength
Minimum text length. Applied only to linear barcode formats that allow variable length.
Default is 1.
public int MinimumTextLength { get; set; }
Property Value
OneDConfirmationMode
Allows to select the balance between result accuracy (precision) and missed barcodes (recall) for linear barcodes.
Default is THOROUGH.
public OneDConfirmationMode OneDConfirmationMode { get; set; }
Property Value
StrictMode
If true, the barcode scanner will only return barcodes that pass the strict validation checks according to standards to avoid false positives.
Default is true.
public bool StrictMode { get; set; }
Property Value
StripCheckDigits
If true, the check digits are stripped from the result.
Default is false.
public bool StripCheckDigits { get; set; }
Property Value
Methods
FromJson(string)
public static BarcodeFormatCommonConfiguration FromJson(string rawJson)
Parameters
rawJsonstring