Table of Contents

Class BarcodeSelectionConfiguration

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

Configuration for how to select barcode results.

public class BarcodeSelectionConfiguration
Inheritance
BarcodeSelectionConfiguration
Inherited Members

Properties

CenterCoordX

The normalized x‑coordinate of the image center, expressed in the range [0,1]. Only used when selectionMethod is CENTER or CENTER_CLOSEST. The default is the center of the image, but can be set to other coordinates for use cases where the center of the frame may not be the point of interest.

Default is 0.5.

public double CenterCoordX { get; set; }

Property Value

double

CenterCoordY

The normalized y‑coordinate of the image center, expressed in the range [0,1]. Only used when selectionMethod is CENTER or CENTER_CLOSEST. The default is the center of the image, but can be set to other coordinates for use cases where the center of the frame may not be the point of interest.

Default is 0.5.

public double CenterCoordY { get; set; }

Property Value

double

CenterDistanceTolerance

The maximum allowed distance from centerCoord at which a barcode may still be selected when selectionMethod is CENTER. If multiple barcodes are within the tolerance, the closest one will be selected. The value is expressed in terms of the image size, where 1.0 means the maximum distance which is equal to the diagonal of the image. The default value is 0, which means that barcodes must touch the center of the frame to be selected. Increasing this value can help with selecting barcodes that are close to the center but not touching it.

Default is 0.

public double CenterDistanceTolerance { get; set; }

Property Value

double

SelectionMethod

The method used to select barcodes.

Default is ALL.

public BarcodeSelectionMethod SelectionMethod { get; set; }

Property Value

BarcodeSelectionMethod

Methods

FromJson(string)

public static BarcodeSelectionConfiguration FromJson(string rawJson)

Parameters

rawJson string

Returns

BarcodeSelectionConfiguration