Error Handling for Document Scan SDK for iOS
In addition to document capture, the Document Scan DSK for iOS 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 decisioning 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 on a separate page.
Capture Error Codes
Code | Description |
---|---|
0 | The provided license key is expired. |
1 | Camera permissions are not granted by the user. |
2 | The camera capture session could not be started. |
3 | The scan could not begin because the scan controller is not presented. |
4 | The camera is not supported in the iOS Simulator. |