Error Handling for Document Scan SDK for Android

In addition to document capture, the Document Scan for Android SDK performs complex image analysis and data extraction. While there are defined errors that may occur during capture, it is up to you to determine analysis & data thresholds within your application.

Capture Data and Analysis

Extracted data and capture analysis is populated on every DSResult. Your decision will likely differ depending on the document classification (license, passport, passport card, etc.) and the side of the document.

Overall capture confidence will always be present in DSResult.confidence. Detailed capture analysis is stored in DSResult.captureAnalysis.

For detailed information on DSResult and decisioning, see the information on Parsing Responses article.

Capture Error Codes

Code Description
LicenseKeyExpiredOrInvalid The provided license key is expired.
CameraPermissionNotGranted Camera permissions are not granted by the user.
CouldNotInitiateCameraSession The camera capture session could not be started.