Custom Barcode

Defined in namespace Scandit.DataCapture.Label

CustomBarcode
class CustomBarcode : BarcodeField

Added in version 8.1.0

Defines a barcode field with customizable symbology support and validation regexes. This field type allows you to specify which barcode symbologies should be recognized and optionally apply data validation regexes to the decoded content.

AnchorRegexes
IList<string> AnchorRegexes { get; }

Added in version 8.1.0

Context-identifying keywords or phrases used to distinguish between fields that may have similar patterns. These patterns help Smart Label Capture identify which field the captured data belongs to when multiple fields could match the same regex.

For example, when a label contains both expiry date and packing date fields, you can use anchorRegexes like [“exp”, “expiry”] for the expiry date field and [“pack”, “packing”] for the packing date field to help the system correctly identify which date is which.

Location
LabelFieldLocation Location { get; }

Added in version 8.1.0

The spatial location constraint for this barcode field within the label. This can be used to specify where on the label this field is expected to appear, helping to improve recognition accuracy and speed by focusing the search area.

Builder()
static CustomBarcodeBuilder Builder()

Added in version 8.1.0

Creates a CustomBarcodeBuilder for creating CustomBarcode field definitions.