interface TextDataScannerConfiguration {
    cameraModule?: CameraModule;
    cameraOverlayColor?: string;
    cameraPreviewMode?: CameraPreviewMode;
    cancelButtonHidden?: boolean;
    cancelButtonTitle?: string;
    enableCameraButtonTitle?: string;
    enableCameraExplanationText?: string;
    finderLineColor?: string;
    finderLineWidth?: number;
    finderTextHintColor?: string;
    flashButtonHidden?: boolean;
    flashButtonTitle?: string;
    flashEnabled?: boolean;
    maximumNumberOfAccumulatedFrames?: number;
    minimumNumberOfRequiredFramesWithEqualRecognitionResult?: number;
    ocrResolutionLimit?: number;
    orientationLockMode?: OrientationLockMode;
    replaceCancelButtonWithIcon?: boolean;
    textDataScannerStep?: TextDataScannerStep;
    textDataValueFilter?: string;
    topBarBackgroundColor?: string;
    topBarButtonsActiveColor?: string;
    topBarButtonsInactiveColor?: string;
    touchToFocusEnabled?: boolean;
    useButtonsAllCaps?: boolean;
    wordBoxHighlightColor?: string;
    wordBoxHighlightEnabled?: boolean;
}

Properties

cameraModule?: CameraModule

The preferred camera module (default - BACK)

cameraOverlayColor?: string

Background color outside of the finder window.

cameraPreviewMode?: CameraPreviewMode

Preview mode of the camera. FILL_IN or FIT_IN. Default is FILL_IN. Android only

cancelButtonHidden?: boolean

Whether the cancel button is hidden or not. iOS only.

cancelButtonTitle?: string

Title of the cancel button.

enableCameraButtonTitle?: string

Title of the button that opens the screen where the user can allow the usage of the camera by the app.

enableCameraExplanationText?: string

Text that will be displayed when the app is not allowed to use the camera, prompting the user to enable the usage of the camera.

finderLineColor?: string

Foreground color of the detection overlay.

finderLineWidth?: number

Width of finder frame border. Default is 2.

finderTextHintColor?: string

Foreground color of the description label.

flashButtonHidden?: boolean

Controls whether the flash toggle button is hidden or not. iOS only.

flashButtonTitle?: string

Title of the flash toggle button. iOS only.

flashEnabled?: boolean

Controls whether the flash should be initially enabled. The default value is FALSE.

maximumNumberOfAccumulatedFrames?: number

Maximum number of accumulated frames to inspect before actual result is returned

minimumNumberOfRequiredFramesWithEqualRecognitionResult?: number

Minimum number of accumulated frames that have equal result

ocrResolutionLimit?: number

The image will be downscaled to the given value during the processing. If the quality of the scanning is not enough, try to increase the limit. This variable affects the performance of the scanning process. Higher the size limit - better the quality, but the recognition is slower. 0 - do not rescale.

orientationLockMode?: OrientationLockMode

UI Interface orientation lock mode

replaceCancelButtonWithIcon?: boolean

If true, replaces the cancel button in the top bar with a back arrow icon. The default value is FALSE. Android only.

textDataScannerStep?: TextDataScannerStep

Configuration for the scanned item

textDataValueFilter?: string

Filter text data by regular expression.

topBarBackgroundColor?: string

The background color of the top toolbar.

topBarButtonsActiveColor?: string

The color of all active toggle buttons in the toolbar.

topBarButtonsInactiveColor?: string

The color of all inactive toggle buttons in the toolbar.

touchToFocusEnabled?: boolean

Whether touch-to-focus is enabled on camera preview. Enabled by default. Android only.

useButtonsAllCaps?: boolean

Controls whether buttons should use all capitals style, as defined by the Android Material Design. Defaults to TRUE. Android only.

wordBoxHighlightColor?: string

The color of the highlight of the wordboxes founded on the frame

wordBoxHighlightEnabled?: boolean

If the wordboxes should be highlighted when were found on the frame