Method Signature
Description
ThestartAcuant() method initiates the Acuant document verification module for capturing and validating identification documents. This method provides document authentication, OCR data extraction, and photo extraction capabilities.
Parameters
Acuant service credentials for authentication
Whether to extract OCR data from the document
true- Extract OCR data from the documentfalse- Skip OCR data extraction
Whether to extract the photo from the identification document
true- Extract the face photo from the IDfalse- Skip photo extraction
Capture mode selection
true- Manual capture mode (user controls when to take the photo)false- Automatic capture mode (captures when document is detected)
Optional configuration object for customizing the module’s behavior and appearance
Returns
A promise that resolves with the Acuant module response
Code Example
Error Handling
The method may throw errors that can be identified usingFadSDK.Errors.Acuant:
UNSUPPORTED_CAMERA- Camera is not supported on this deviceFAIL_INITIALIZATION- Failed to initialize the Acuant SDKFAIL_GET_OCR- Failed to extract OCR data from the documentFAIL_GET_FACE_IMAGE- Failed to extract face image from the documentFACE_IMAGE_URL_NOT_FOUND- Face image URL not found in responseFACE_IMAGE_NOT_FOUND- Face image not found in the document
Always call
FAD_SDK.end() in a finally block to properly clean up resources after the module completes or fails.Related Methods
- startRegula() - Alternative document capture using Regula technology
- startCaptureId() - Basic document capture without advanced validation