Interface LocatorConfiguration

Locator configuration

interface LocatorConfiguration {
    chromaReject?: boolean;
    forceSyncReadback?: boolean;
    impl?: "auto" | "webgl1" | "webgl2";
    regionOfInterest?: RegionOfInterest;
}

Properties

chromaReject?: boolean

Disregard colorful areas, assume barcodes are printed black on white.

Remarks

This is an advanced setting and should normally not be changed.

Default Value

false
forceSyncReadback?: boolean

Disable asynchronous reads from GPU when using webgl2 LocatorConfiguration.impl.

Remarks

Some older iOS versions have issues with WebGL2 asynchronous reads. There is usually no need to change this setting from its default.

Default Value

false
impl?: "auto" | "webgl1" | "webgl2"

The locator implementation to use. This should normally not be changed, unless it is specifically required to target WebGL 1.

Remarks

This is an advanced setting and should normally not be changed, unless targeting WebGL1 and not WebGL2 is explicitly required.

Default Value

auto
regionOfInterest?: RegionOfInterest

The region of interest in viewport coordinates.

Remarks

if no region of interest is specified, an appropriate one will automatically be selected at run-time depending on the configured symbologies.

Generated using TypeDoc