Disabling OneShotLiveness estimation#
If you want to skip a liveness estimation over the best shot, you can disable a OneShotLiveness estimation.
To disable OneShotLiveness estimations, set the livenessType: LivenessType field to None in LunaConfig.
If livenessType: LivenessType is not specified, OneShotLiveness estimations are disabled by default.
The example below shows how to disable OneShotLiveness estimations:
val apiConfig = ApiHumanConfig("http://luna-platform.com/api/6/")
LunaID.init(
...
apiHumanConfig = apiConfig,
lunaConfig = LunaConfig.create(
livenessType = LivenessType.None,
),
)