Skip to main content

Veritran Docs

Document Autocapture

This function is used to capture and store an image of a document.

Parameter Configuration

This function doesn't require the configuration of any mandatory parameters. Read Input Registers to learn about any optional parameters you can configure.

Function ID

Register

Value

110

7

Input Registers

Register

Description

Mandatory

Value

390

Captured Image ID

By default, the ID is 'documentAutocapture'.

391

Document Analysis Stage

The default value is 0.

Possible values:

0: No header.

1: Header with visual aid to help capture the front side of the document.

2: Header with visual aid to help capture the back side of the document.

392

Compression Percentage

Values go from 0 to 100, being 0 the maximum compression and 100 no compression. The default value is 70.

Output Registers

Register

Description

Value

112

Call Result

000

NO_ERROR

001

API_GENERIC_ERROR

002

API_WRONG_PARAMETERS_ERROR

003

API_SDK_NOT_INITIALIZED

004

INTERRUPTED

005

CAMERA_INIT_FAILED

006

CAMERA_ACCESS_FAILED

007

NO_CAMERA_PERMISSION

014

COMPRESSION_PARAMETER_NOT_IN_RANGE. Only available for iOS.