Optional backgroundOptional captureOptional containerThe container HTML element of Scanbot Web SDK camera. Required when 'containerId' property is left undefined when calling any ScanbotSDK createScanner function. If both are provided, 'container' property takes precedence.
Optional containerThe container HTML element id of Scanbot Web SDK camera. Required when 'container' property is left undefined when calling any ScanbotSDK createScanner function If both are provided, 'container' property takes precedence.
Optional desiredIf set, limit the resolution of the image that is used for barcode recognition. A lower value will result in faster processing times but may reduce recognition quality.
Optional enable4kDetermines whether the scanner should use the 4K video stream. This will enhance the recognition quality, but will also increase the CPU load and memory consumption.Should be enabled on devices that can handle the increased load. If the device does not support 4K, it will fall back to the highest available resolution. This setting overrides videoConstraints width and height settings. Defaults to false
Optional finderOptional mirroredOptional onOptional onError callback of the SDK. If any error was reported, your scanner might not be scanning anymore, e.g. due to an out-of-memory error.
Optional overlayOptional preferredCamera id or camera label. A list of available cameras can be obtained from ScanbotSDK.cameras.
Optional scannerOptional spinnerOptional userOptional background?: { strokeColor?: string; fillColor?: string; strokeWidth?: number; }The background style used for the user guidance.
new BackgroundStyle({
"strokeColor": "#00000000",
"fillColor": "?sbColorSurfaceLow"
});
Optional title?: { visible?: boolean; text?: string; color?: string; useShadow?: boolean; }The title of the user guidance.
new StyledText({
"color": "?sbColorOnPrimary"
});
Optional visible?: booleanDetermines whether the user guidance is visible or not.
true;
Optional videoScanbotCameraView video constraints
Optional zoomDigital zoom level of the video stream. Defaults to 1.0. Please note that this is not the same as the optical zoom of the camera.
Static DEFAULT_Static DEFAULT_Static DEFAULT_Static DEFAULT_Static DEFAULT_Static fromStatic mapStatic mapStatic mapGenerated using TypeDoc
Capture delay in milliseconds after detecting barcodes. Defaults to 1000