Guide liveness and capture a live selfie

Guide the user through on-device liveness and compare a live selfie with the portrait read from an NFC passport chip.

What the SDK provides

Active liveness prompts

Guide the user through blinking and turning left and right. Return which challenges completed and whether active liveness passed.

Optional passive check

Request passive liveness alongside active guidance. The SDK returns the passive outcome when available.

JPEG selfie output

Receive the selfie bytes when capture succeeds. The host app controls how the data is used and retained.

Compare against the passport portrait

Provide the live selfie result and the NFC chip portrait to the on-device comparison. Results expose a 1–100 similarity score when available, a separate threshold result, or a failure explanation when supplied.

Swift integration

Connect the capture to your app.

Identomic.face(checksPassiveLiveness: true) { face in
    guard let face else { return }
    Task {
        let match = await Identomic.compareFace(face, with: chip)
        // Handle similarity, threshold and failure separately.
    }
}

Frequently asked questions

Can I use face capture without a passport?

Yes. The selfie and liveness flow runs on its own. The SDK’s chip-portrait comparison takes a passport chip result.

What does the similarity score mean?

It is the local model’s similarity score on a 1–100 scale. Integrators should evaluate match thresholds and performance in their own workflow.

Try the workflow on your devices.

Tell us which capture results, devices and integrations matter to your pilot.

Request a pilot