Liveness processing

Allows you to start liveness processing:

Java
Kotlin
Java
Face.Instance().startLivenessMatching(MainActivity.this, livenessResponse -> {
// do smth
});
Kotlin
Face.Instance().startLivenessMatching(this@MainActivity) { livenessResponse: LivenessResponse? ->
// do smth
}

There is a possibility to stop liveness processing programmatically:

Java
Kotlin
Java
Face.Instance().stopLivenessProcessing(MainActivity.this);
Kotlin
Face.Instance().stopLivenessProcessing(this@MainActivity)

Response

LivenessResponse
└── liveness
└── error

Parameter

Description

liveness

Liveness result, one of LivenessStatus enum values

error

Error