scanbotsdk
    Preparing search index...

    Class BarcodeSelectionConfiguration

    Configuration for how to select barcode results.

    Index

    Constructors

    Properties

    centerCoordX: number = 0.5

    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.

    centerCoordY: number = 0.5

    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.

    centerDistanceTolerance: number = 0.0

    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.

    selectionMethod: BarcodeSelectionMethod = "ALL"

    The method used to select barcodes.

    Default is ALL.