Interface GenericDocumentRecognizerConfiguration

interface GenericDocumentRecognizerConfiguration {
    acceptedDocumentTypes?: GenericDocumentType[];
    cameraModule?: CameraModule;
    cameraOverlayColor?: string;
    cameraPreviewMode?: CameraPreviewMode;
    cancelButtonHidden?: boolean;
    cancelButtonTitle?: string;
    clearButtonTitle?: string;
    confidenceValue?: string;
    detailsActionColor?: string;
    detailsBackgroundColor?: string;
    detailsPrimaryColor?: string;
    detailsSectionHeaderBackgroundColor?: string;
    detailsSectionHeaderTextColor?: string;
    documentsDisplayConfiguration?: DocumentsDisplayConfiguration[];
    emptyValueTitle?: string;
    enableCameraButtonTitle?: string;
    enableCameraExplanationText?: string;
    excludedFieldTypes?: string[];
    fieldConfidenceHighColor?: string;
    fieldConfidenceLowColor?: string;
    fieldConfidenceModerateColor?: string;
    fieldConfidenceTextColor?: string;
    fieldsCountText?: string;
    fieldsCountTextColor?: string;
    fieldsDisplayConfiguration?: FieldsDisplayConfiguration[];
    finderLineColor?: string;
    finderLineWidth?: number;
    flashButtonHidden?: boolean;
    flashButtonTitle?: string;
    flashEnabled?: boolean;
    imageTitle?: string;
    noDataTitle?: string;
    orientationLockMode?: OrientationLockMode;
    replaceCancelButtonWithIcon?: boolean;
    scanBackSideTitle?: string;
    scanFrontSideTitle?: string;
    scannedEverythingTitle?: string;
    sharpnessAcceptanceFactor?: number;
    startScanningTitle?: string;
    submitButtonTitle?: string;
    tipBackgroundColor?: string;
    tipTextColor?: string;
    topBarBackgroundColor?: string;
    topBarButtonsActiveColor?: string;
    topBarButtonsInactiveColor?: string;
    touchToFocusEnabled?: boolean;
    useButtonsAllCaps?: boolean;
}

Properties

acceptedDocumentTypes?: GenericDocumentType[]

Accepted document types. All other document types will be ignored. Default: All types.

cameraModule?: CameraModule

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 to hide the cancel button. iOS only.

cancelButtonTitle?: string

Title of the cancel button.

clearButtonTitle?: string

Title of the clear button.

confidenceValue?: string

String that shows the average confidence value of the scanned document. Use %d as the number formatting symbol.

detailsActionColor?: string

Color of the Submit button.

detailsBackgroundColor?: string

Color of the bottom sheet.

detailsPrimaryColor?: string

Color of the text elements in the bottom sheet.

detailsSectionHeaderBackgroundColor?: string

Background color for the section headers on the details screen. iOS only.

detailsSectionHeaderTextColor?: string

Text color for the section headers on the details screen. iOS only.

documentsDisplayConfiguration?: DocumentsDisplayConfiguration[]

Allows you to configure the display configuration for documents.

emptyValueTitle?: string

String displayed for empty values. iOS only.

enableCameraButtonTitle?: string

Title of the button that opens the screen where the user can allow the app to use the camera.

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.

excludedFieldTypes?: string[]

List of secure fields that should be excluded from the scanning process. All other fields will be scanned as usual. Field should be set ONLY as a normalized field name. Example: [DePassport.BirthDate] or [DePassport.Birthplace].

fieldConfidenceHighColor?: string

Color of the confidence value label background in the details screen when the field confidence level is high.

fieldConfidenceLowColor?: string

Color of the confidence value label background in the details screen when the field confidence level is low.

fieldConfidenceModerateColor?: string

Color of the confidence value label background in the details screen when the field confidence level is moderate.

fieldConfidenceTextColor?: string

Color of the confidence value label text in the details.

fieldsCountText?: string

String used for displaying the amount of detected fields. Use %d for the number formatting symbol.

fieldsCountTextColor?: string

Text color of the fields count label.

fieldsDisplayConfiguration?: FieldsDisplayConfiguration[]

Allows you to configure the display configuration for fields.

finderLineColor?: string

Foreground color of the detection overlay.

finderLineWidth?: number

Width of the finder frame border. Default is 2.

flashButtonHidden?: boolean

Whether to hide the flash toggle button.

flashButtonTitle?: string

Title of the flash toggle button.

flashEnabled?: boolean

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

imageTitle?: string

A title to show image content. Android only.

noDataTitle?: string

String that notifies the user that nothing was scanned yet.

orientationLockMode?: OrientationLockMode

Lock mode for the UI's orientation.

replaceCancelButtonWithIcon?: boolean

Whether to replace the cancel button in the top bar with a back arrow icon. The default value is FALSE. Android only.

scanBackSideTitle?: string

String that asks the user to scan the back side of the document.

scanFrontSideTitle?: string

String that asks the user to scan the front side of the document.

scannedEverythingTitle?: string

String that notifies the user that both sides of the document have been scanned.

sharpnessAcceptanceFactor?: number

Accepted minimal sharpness score. Images with a score less than that will be rejected with RecognitionStatus::ErrorTooBlurry. Default is 80. 0: any image will be accepted. 80: a good compromise and the recommended setting. 100: only very sharp images will be accepted.

startScanningTitle?: string

String that asks the user to start scanning the document.

submitButtonTitle?: string

Text of the button to finish the scanning flow.

tipBackgroundColor?: string

Color of the tip background on the scanning screen.

tipTextColor?: string

Color of the tip text on the scanning screen.

topBarBackgroundColor?: string

Background color of the top toolbar.

topBarButtonsActiveColor?: string

Color of all active toggle buttons in the toolbar.

topBarButtonsInactiveColor?: string

Color of all inactive toggle buttons in the toolbar.

touchToFocusEnabled?: boolean

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

useButtonsAllCaps?: boolean

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