Selfie Biometric Capture
šø Selfie Capture ā Overview in Ditto ID Identity Verification (IDV)
š§ Purpose
The selfie capture step in Ditto IDās IDV flow ensures that the person submitting the document is the actual document holder. It enables biometric face matching and liveness detection, fulfilling compliance and security needs for:
- KYC (Know Your Customer)
- AML (Anti-Money Laundering)
- Account activation or re-verification
š§ Key Features
- Liveness Detection: Confirms user is physically present
- Face Match Scoring: Matches selfie with document photo
- Front/Back Camera Toggle: Configurable through API
- Anti-Spoofing: Detects masks, photos, or replays
- Secure Flow: Fully handled inside SDK for tamper-resistance
šØāš» Developer Responsibilities
- Listen to
getIDVSelfieProcessStartConfirmation - Show a UI with:
- Instructional text: āEnsure good lighting and a clear face viewā
- A āStartā button
- Call
setIDVSelfieProcessStartConfirmationupon user action - Handle post-capture events or errors
š Workflow (Step-by-Step)
- ā User completes document verification
- š SDK triggers
getIDVSelfieProcessStartConfirmation - š¼ļø App shows a screen with instructions to prepare for selfie capture
- š¤ User taps "Start"
- š¤ App calls
setIDVSelfieProcessStartConfirmation(true, useBackCamera, workflow) - š· SDK launches selfie camera and captures the selfie
- š§¾ SDK triggers
getIDVSelfieConfirmation - š¼ļø App displays the captured selfie to the user
- š User taps:
- ā
"Confirm" ā App calls
setIDVSelfieConfirmation(true, workflow, challengeMode) - š "Retake" ā App calls
setIDVSelfieConfirmation(false, workflow, challengeMode)
- ā
"Confirm" ā App calls
- š If confirmed: SDK proceeds to the next step in the IDV workflow
- š If rejected: SDK re-launches selfie capture and returns to step 6
flowchart TD
Start([Start]) -->|ā
User completes document verification| B[š SDK triggers getIDVSelfieProcessStartConfirmation]
B --> C[š¼ļø App shows selfie prep screen]
C -->|š¤ User taps Start| E[š¤ App calls setIDVSelfieProcessStartConfirmation]
E --> F[š· SDK launches selfie camera and captures selfie]
F --> G[š§¾ SDK triggers getIDVSelfieConfirmation]
G --> H[š¼ļø App displays captured selfie to user with match result]
H -->|š User choice| J[š¤ App calls setIDVSelfieConfirmation]
J -->|Continue| L[š SDK proceeds to next step in IDV workflow]
J -->|Rescan Document| M[SDK calls getIDVDocumentScanProcessStartConfirmation]
J -->|Rescan Selfie| E
style B fill:#d4fdd4,stroke:#228b22,stroke-width:2px
style G fill:#d4fdd4,stroke:#228b22,stroke-width:2px
style M fill:#d4fdd4,stroke:#228b22,stroke-width:2px
style E fill:#ffe4b3,stroke:#ff8c00,stroke-width:2px
style J fill:#ffe4b3,stroke:#ff8c00,stroke-width:2px
š© Green - Callbacks issued by Ditto ID SDK
š§ Orange - APIs invoked by the Client App
Updated 4 months ago
Whatās Next
