Method Signature
Description
ThestartCaptureId() method initiates a basic document capture module for capturing identification documents and extracting OCR data. This method provides a simpler alternative to Regula and Acuant for basic ID capture needs.
Parameters
Optional configuration object for customizing the module’s behavior and appearance
Returns
A promise that resolves with the capture ID module response
Code Example
Error Handling
The method may throw errors that can be identified usingFadSDK.Errors.CaptureId:
NOT_READABLE_CAMERA- Camera is being used by another applicationSERVICE_ERROR- Service error occurredVIDEO_PLAYING_ERROR- Error playing video streamMODEL_FAILED- ML model failed to loadTF_LITE_ERROR- TensorFlow Lite error
This method provides basic document capture. For advanced document verification with authentication features, use startRegula() or startAcuant().
Always call
FAD_SDK.end() in a finally block to properly clean up resources after the module completes or fails.Related Methods
- startRegula() - Advanced document capture with Regula
- startAcuant() - Advanced document capture with Acuant