FaceCheckPolicy

data class FaceCheckPolicy(val docTypes: Set<String>, val liveness: Liveness = Liveness.QUICK, val similarityThreshold: Float = 0.7f, val maxAttempts: Int = 3)

The face check's policy.

Constructors

Link copied to clipboard
constructor(docTypes: Set<String>, liveness: Liveness = Liveness.QUICK, similarityThreshold: Float = 0.7f, maxAttempts: Int = 3)

Properties

Link copied to clipboard

credential types that need the check before they are shared (e.g. org.iso.23220.photoid.1).

Link copied to clipboard

how much liveness to require; see Liveness.

Link copied to clipboard
val maxAttempts: Int = 3

how many times the holder may retry a failed match before the share is refused.

Link copied to clipboard

the face-match score (0..1) a live face must reach against the credential's photo. 0.7 is a sensible default; lower it if genuine holders with a changed look (beard, glasses) fail.